Build: Tag Docker edge build with next patch versions

This commit is contained in:
Ralph Slooten
2026-05-09 17:54:26 +12:00
parent 0702241fa5
commit da7b82378c

View File

@@ -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