There was an error while loading. Please reload this page.
1 parent 0702241 commit da7b823Copy full SHA for da7b823
1 file changed
.github/workflows/build-docker-edge.yml
@@ -39,13 +39,22 @@ jobs:
39
uses: benjlevesque/short-sha@v3.0
40
id: short-sha
41
42
+ - name: Calculate next patch version
43
+ id: next-version
44
+ run: |
45
+ TAG="${{ steps.previous-tag.outputs.tag }}"
46
+ VERSION="${TAG#v}"
47
+ BASE="${VERSION%.*}"
48
+ PATCH="${VERSION##*.}"
49
+ echo "version=v${BASE}.$((PATCH + 1))-${{ steps.short-sha.outputs.sha }}" >> "$GITHUB_OUTPUT"
50
+
51
- name: Build and push
52
uses: docker/build-push-action@v7
53
with:
54
context: .
55
platforms: linux/386,linux/amd64,linux/arm64
56
build-args: |
- "VERSION=${{ steps.previous-tag.outputs.tag }}-${{ steps.short-sha.outputs.sha }}"
57
+ "VERSION=${{ steps.next-version.outputs.version }}"
58
push: true
59
tags: |
60
axllent/mailpit:edge
0 commit comments