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.2.1, 3.2, 3, latest
  • Loading branch information
merusso authored and Michael Russo committed Sep 7, 2023
1 parent 4892983 commit 822c7e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ jobs:
docker.io/stefanprodan/podinfo
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 822c7e4

Please sign in to comment.