We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e6d93ff + 3b542a4 commit 2da45aeCopy full SHA for 2da45ae
.github/workflows/build_docker.yml
@@ -71,7 +71,8 @@ jobs:
71
file: ./docker/${{ matrix.image }}/Dockerfile
72
labels: ${{ steps.meta.outputs.labels }}
73
platforms: linux/amd64
74
- push: ${{ github.event_name != 'pull_request' }}
+ # Only push if we've tagged the image in the metadata step
75
+ push: ${{ github.event_name != 'pull_request' && steps.meta.outputs.tags != '' }}
76
tags: ${{ steps.meta.outputs.tags }}
77
cache-from: type=gha,scope=container-${{ matrix.image }}
78
cache-to: type=gha,scope=container-${{ matrix.image }},mode=max
0 commit comments