Skip to content

Commit

Permalink
Merge pull request #7 from andrey-kondratov/fix/latest-tag
Browse files Browse the repository at this point in the history
Set latest tag for default branch push.
  • Loading branch information
andrey-kondratov authored Aug 14, 2024
2 parents 0b7198b + 7cedffe commit 47ff441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
images: ${{ vars.DOCKERHUB_REGISTRY }}/${{ vars.DOCKERHUB_IMAGE }}
tags: |
type=ref,event=branch
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=pr
- name: Build and push
run: dotnet cake --target Push --registry ${{ vars.DOCKERHUB_REGISTRY }} --image ${{ vars.DOCKERHUB_IMAGE }} --tag ${{ steps.meta.outputs.version }}

0 comments on commit 47ff441

Please sign in to comment.