From da7b82378cc3510c82f51b7d1fb0dab29e6ffec0 Mon Sep 17 00:00:00 2001 From: Ralph Slooten Date: Sat, 9 May 2026 17:54:26 +1200 Subject: [PATCH] Build: Tag Docker edge build with next patch versions --- .github/workflows/build-docker-edge.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-docker-edge.yml b/.github/workflows/build-docker-edge.yml index 3a9b09c..6d65d5f 100644 --- a/.github/workflows/build-docker-edge.yml +++ b/.github/workflows/build-docker-edge.yml @@ -39,13 +39,22 @@ jobs: uses: benjlevesque/short-sha@v3.0 id: short-sha + - name: Calculate next patch version + id: next-version + run: | + TAG="${{ steps.previous-tag.outputs.tag }}" + VERSION="${TAG#v}" + BASE="${VERSION%.*}" + PATCH="${VERSION##*.}" + echo "version=v${BASE}.$((PATCH + 1))-${{ steps.short-sha.outputs.sha }}" >> "$GITHUB_OUTPUT" + - name: Build and push uses: docker/build-push-action@v7 with: context: . platforms: linux/386,linux/amd64,linux/arm64 build-args: | - "VERSION=${{ steps.previous-tag.outputs.tag }}-${{ steps.short-sha.outputs.sha }}" + "VERSION=${{ steps.next-version.outputs.version }}" push: true tags: | axllent/mailpit:edge