Skip to content

Commit b3bb6fa

Browse files
committed
Update Docker edge version number
1 parent ffb3067 commit b3bb6fa

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/build-docker-edge.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
steps:
1010
- name: Checkout repository
1111
uses: actions/checkout@v6
12+
with:
13+
fetch-depth: 0 # required for github-action-get-previous-tag
1214

1315
- name: Set up QEMU
1416
uses: docker/setup-qemu-action@v3
@@ -29,7 +31,12 @@ jobs:
2931
username: ${{ github.repository_owner }}
3032
password: ${{ github.token }}
3133

32-
- uses: benjlevesque/short-sha@v3.0
34+
- name: Get previous git tag
35+
uses: WyriHaximus/github-action-get-previous-tag@v2
36+
id: previous-tag
37+
38+
- name: Get short SHA
39+
uses: benjlevesque/short-sha@v3.0
3340
id: short-sha
3441

3542
- name: Build and push
@@ -38,7 +45,7 @@ jobs:
3845
context: .
3946
platforms: linux/386,linux/amd64,linux/arm64
4047
build-args: |
41-
"VERSION=edge-${{ steps.short-sha.outputs.sha }}"
48+
"VERSION=${{ steps.previous-tag.outputs.tag }}-${{ steps.short-sha.outputs.sha }}"
4249
push: true
4350
tags: |
4451
axllent/mailpit:edge

0 commit comments

Comments
 (0)