Skip to content

Commit daebca3

Browse files
authored
Avoiding version collisions on different branches
1 parent e57c3ed commit daebca3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/docker-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,15 @@ jobs:
4646
with:
4747
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4848
tags: |
49-
type=raw,value=${{ env.DNSCRYPT_PROXY_VERSION }}
49+
type=raw,value=${{ env.DNSCRYPT_PROXY_VERSION }},enable=${{ github.ref_name == 'master' }}
5050
type=raw,value=latest,enable=${{ github.ref_name == 'master' }}
5151
type=raw,value=testing,enable=${{ github.ref_name == 'testing' }}
52+
type=raw,value=testing-${{ env.DNSCRYPT_PROXY_VERSION }},enable=${{ github.ref_name == 'testing' }}
5253
5354
- uses: docker/build-push-action@v6
5455
with:
5556
context: .
5657
platforms: linux/amd64
57-
build-args: VERSION=${{ env.DNSCRYPT_PROXY_VERSION }}
58+
build-args: RELEASE_TAG=${{ env.DNSCRYPT_PROXY_VERSION }}
5859
tags: ${{ steps.meta.outputs.tags }}
5960
push: true

0 commit comments

Comments
 (0)