From d3ab3f964b8e15b7b9bfd85c0c0d88040d5b78af Mon Sep 17 00:00:00 2001 From: Manielle <75130972+Manielle@users.noreply.github.com> Date: Sun, 25 Oct 2026 14:22:16 +0100 Subject: [PATCH] CI accepts four-part tags (v1.2.3.1) for fixes --- .gitea/workflows/publish.yml | 3 +++ .github/workflows/publish.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 65e3043..a7f6368 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -71,6 +71,9 @@ jobs: tags: | type=ref,event=branch type=semver,pattern={{version}} + # A fix to release 1.2.3 is tagged v1.2.3.1: four numbers are not semver, so + # the pattern above makes no tag for it; this one does (image tag 1.2.3.1). + type=match,pattern=v(\d+\.\d+\.\d+\.\d+),group=1 type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} type=sha,format=short diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 645e848..6f3392c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,6 +43,9 @@ jobs: tags: | type=ref,event=branch type=semver,pattern={{version}} + # A fix to release 1.2.3 is tagged v1.2.3.1: four numbers are not semver, so + # the pattern above makes no tag for it; this one does (image tag 1.2.3.1). + type=match,pattern=v(\d+\.\d+\.\d+\.\d+),group=1 type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} type=sha,format=short