We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2b54d5 commit 6db219fCopy full SHA for 6db219f
.github/workflows/main.yml
@@ -36,3 +36,11 @@ jobs:
36
--push \
37
--platform=linux/amd64,linux/arm64,linux/armhf \
38
-t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest -f ./Dockerfile ./
39
+ - name: Also create tagged image if tag exists
40
+ if: startsWith(github.ref, 'refs/tags/')
41
+ run: |
42
+ TAG=${GITHUB_REF#refs/tags/}
43
+ docker buildx build \
44
+ --push \
45
+ --platform=linux/amd64,linux/arm64,linux/armhf \
46
+ -t ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:$TAG -f ./Dockerfile ./
0 commit comments