Chart Verifier #319
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Chart Verifier | |
on: | |
push: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' # every day at midnight | |
jobs: | |
chart-verifier: | |
name: Chart Verifier | |
runs-on: ubuntu-22.04 | |
env: | |
CHART_URI: https://github.com/redhat-actions/openshift-actions-runner-chart/blob/release-chart/packages/actions-runner-1.1.tgz?raw=true | |
VERIFY_ARGS: --chart-set githubOwner=${{ github.repository_owner }} --chart-set githubRepository=chart-verifier --chart-set githubPat=${{ secrets.REPO_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: redhat-actions/oc-login@v1 | |
with: | |
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }} | |
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }} | |
insecure_skip_tls_verify: true | |
- name: Print Kube context info | |
run: | | |
echo $KUBECONFIG | |
- name: Install chart-verifier CLI | |
uses: redhat-actions/openshift-tools-installer@v1 | |
with: | |
source: github | |
chart-verifier: latest | |
- name: Ensure secret exists | |
run: | | |
[ -n '${{ secrets.REPO_TOKEN }}' ] | |
- uses: ./ | |
name: Verify Chart | |
id: verify | |
with: | |
chart_uri: ${{ env.CHART_URI }} | |
verify_args: ${{ env.VERIFY_ARGS }} | |
fail: false | |
- name: echo outputs | |
run: echo "${{ toJSON(steps.verify.outputs) }}" | |
- name: Print report | |
run: cat ${{ steps.verify.outputs.report_file }} | |
- name: Print report info | |
run: cat ${{ steps.verify.outputs.report_info_file }} | |
- uses: ./ | |
name: Verify Chart with different profile | |
id: verify-2 | |
with: | |
chart_uri: ${{ env.CHART_URI }} | |
verify_args: ${{ env.VERIFY_ARGS }} | |
profile_name: "community" | |
profile_version: "1.1" | |
fail: false | |
- name: echo outputs | |
run: echo "${{ toJSON(steps.verify-2.outputs) }}" |