From 1d32424d521c36e619223d5420c0e5e34225e26e Mon Sep 17 00:00:00 2001 From: Till Rohrmann Date: Tue, 28 Nov 2023 15:50:11 +0100 Subject: [PATCH] Push image under major.minor tag --- .github/workflows/docker.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index d179fcfb4a..f50385b1c3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -89,11 +89,14 @@ jobs: # Note: We need this to generate the latest tag until we have a first stable release. # Check https://github.com/docker/metadata-action/issues/34 flavor: | - latest=true ${{ inputs.debug && 'prefix=debug-,onlatest=true' || '' }} tags: | type=ref,event=branch type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + + - name: Try to fail + run: exit 1 - name: Build${{inputs.uploadImageAsTarball != true && ' and push ' || ' '}}Docker image id: build