From 555e4f3c1a4d842b9b3e00f9841c836c55697498 Mon Sep 17 00:00:00 2001 From: merusso Date: Thu, 7 Sep 2023 12:24:09 -0500 Subject: [PATCH] Support publishing extra semver Docker tags resolves #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 --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f69a5c5ef..56e0f0b56 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: