We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac8cd2b commit 68811b5Copy full SHA for 68811b5
.github/workflows/publish-docker.yaml
@@ -42,12 +42,12 @@ jobs:
42
with:
43
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
44
tags: |
45
- type=raw,value=latest,enable={{is_default_branch}}
+ type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}
46
type=semver,pattern={{version}}
47
type=sha,format=long
48
type=ref,event=branch
49
type=ref,event=tag
50
- type=raw,value={{tag}},enable={{is_release}}
+ type=raw,value=${{ github.event.release.tag_name }},enable=${{ github.event_name == 'release' }}
51
52
- name: Build and push Docker image
53
uses: docker/build-push-action@v5
0 commit comments