Skip to content

Commit

Permalink
Tag pushes to the default branch as "latest"
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Mar 16, 2023
1 parent ec40914 commit 71d589f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
uses: docker/metadata-action@507c2f2dc502c992ad446e3d7a5dfbe311567a96
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
# tag pushes to the default branch as latest
type=raw,value=latest,enable={{is_default_branch}}
- name: Build and push Docker image
id: build-and-push
Expand Down

0 comments on commit 71d589f

Please sign in to comment.