Skip to content

Commit

Permalink
Support publishing extra semver Docker tags
Browse files Browse the repository at this point in the history
resolves stefanprodan#296

This change adds semver-style Docker tags {{major}} and {{major.minor}}
for each release.

For example, when publishing release v3.2.1, this will push tags: 3, 3.2, 3.2.1, latest
  • Loading branch information
merusso authored Sep 7, 2023
1 parent 4892983 commit 555e4f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ jobs:
ghcr.io/stefanprodan/podinfo
tags: |
type=raw,value=${{ steps.prep.outputs.VERSION }}
type=raw,value=latest
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Publish multi-arch image
uses: docker/build-push-action@v3
with:
Expand Down

0 comments on commit 555e4f3

Please sign in to comment.