Skip to content

Commit

Permalink
Generate correct docker tags from git tags
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Apr 4, 2023
1 parent 4771a36 commit f568b14
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/container-registry-ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ jobs:
uses: docker/metadata-action@v4
with:
images: ghcr.io/${{ github.repository }}
tags: type=raw,value=latest,enable={{is_default_branch}}
tags: |-
# https://github.com/docker/metadata-action#latest-tag
type=raw,value=latest,enable={{is_default_branch}}
# https://github.com/docker/metadata-action#typesemver
type=semver,pattern={{raw}}
type=semver,pattern=v{{major}}.{{minor}}
type=semver,pattern=v{{major}}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
Expand Down

0 comments on commit f568b14

Please sign in to comment.