workflows/deploy: push images on push to latest branch
@@ -107,7 +107,8 @@ jobs:
file: ./images/${{ matrix.id }}/Dockerfile
context: .
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x
- push: ${{ (github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == format('refs/heads/{0}', github.event.repository.default_branch) )) }}
+ # Push on tag, or master or latest branch push.
+ push: ${{ (github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master' || github.ref == 'refs/heads/latest')) }}
tags: ${{ steps.tags.outputs.tags }}
# scorecard-test-kuttl image build job. Only pushes if a tag with prefix "scorecard-kuttl/v" is present.
@@ -153,5 +154,6 @@ jobs:
context: .
# s390x is not supported by the scorecard-test-kuttl base image.
platforms: linux/amd64,linux/arm64,linux/ppc64le
- push: ${{ (github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == format('refs/heads/{0}', github.event.repository.default_branch) )) }}
+ # Push on tag, or master branch push.
+ push: ${{ (github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/master')) }}
tags: ${{ steps.tags.outputs.tags }}
