Skip to content

Commit

Permalink
add confirm-pass step to prod github workflow as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Anne Marie Noronha committed Apr 18, 2024
1 parent 6ce46fb commit 99e15b4
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/prod-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,21 @@ jobs:
context: containers/${{ matrix.tags }}/
file: containers/${{ matrix.tags }}/Dockerfile
tags: ${{ env.REGISTRY }}/${{ steps.docker_repo_name.outputs.name}}:${{steps.docker_repo_version.outputs.version}}
push: true
push: true
confirm-pass:
runs-on: ubuntu-latest
needs: [ dockerfile-changes, dockerfile-validate-build ]
if: always()
steps:
- name: All tests ok
if: ${{ success() || !contains(needs.*.result, 'failure') }}
run: exit 0
- name: One or more tests failed
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1

- name: debug-print
if: always()
run: |
echo "toJSON(needs) = ${{ toJSON(needs) }}"
echo "toJSON(needs.*.result) = ${{ toJSON(needs.*.result) }}"

0 comments on commit 99e15b4

Please sign in to comment.