From 3e12311e59f7b671001a27291a099f604ed93d6e Mon Sep 17 00:00:00 2001 From: kusi Date: Thu, 2 Jul 2026 10:58:01 +0200 Subject: [PATCH] Add version tag for docker images In addition to the sha tag, also add a standard version tag in the format vX.Y.Z. This allows tools like patchpanda to pick up new releases --- .gitea/workflows/build-harbor.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitea/workflows/build-harbor.yml b/.gitea/workflows/build-harbor.yml index 7d30900..b866011 100644 --- a/.gitea/workflows/build-harbor.yml +++ b/.gitea/workflows/build-harbor.yml @@ -32,6 +32,12 @@ jobs: run: | echo "$DH_TOKEN" | podman login docker.io --username "$DH_USER" --password-stdin + - name: Extract version + id: version + run: | + VERSION=$(node -e "console.log(require('./package.json').version)") + echo "version=v$VERSION" >> "$GITHUB_OUTPUT" + - name: Build multi-arch manifest locally env: LOCAL_MANIFEST: localhost/fail2ban-ui:${{ github.sha }} @@ -52,6 +58,7 @@ jobs: run: | DEST="docker://$REG/$PROJ/fail2ban-ui" podman manifest push --all "$LOCAL_MANIFEST" "$DEST:${{ github.sha }}" + podman manifest push --all "$LOCAL_MANIFEST" "$DEST:${{ steps.version.outputs.version }}" podman manifest push --all "$LOCAL_MANIFEST" "$DEST:latest" - name: Push to Docker Hub @@ -63,4 +70,5 @@ jobs: run: | DEST="docker://docker.io/$DH_NS/$DH_REPO" podman manifest push --all "$LOCAL_MANIFEST" "$DEST:${{ github.sha }}" + podman manifest push --all "$LOCAL_MANIFEST" "$DEST:${{ steps.version.outputs.version }}" podman manifest push --all "$LOCAL_MANIFEST" "$DEST:latest"