Skip to content

Commit

Permalink
Simplify metadata-action and add note about latest tag
Browse files Browse the repository at this point in the history
  • Loading branch information
clayoster committed Oct 14, 2024
1 parent baea30c commit b4aadfc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,10 @@ jobs:
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
flavor: |
latest=false
tags: |
type=semver,pattern={{version}}
# set latest tag for default branch
type=raw,value=latest,enable={{is_default_branch}}
# latest tag will automatically be applied if tag matches 0.0.0
# to avoid the latest tag, add data after the semver (ex. 0.0.0-beta.1)
- name: Build and push container image
id: push
Expand Down

0 comments on commit b4aadfc

Please sign in to comment.