File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
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
You can’t perform that action at this time.
0 commit comments