1515 release :
1616 name : Tag and create GitHub release
1717 runs-on : ubuntu-latest
18+ if : github.event_name != 'pull_request' || github.event.pull_request.merged == true
1819 permissions :
1920 contents : write
2021 outputs :
2324 steps :
2425 - name : Checkout repository
2526 uses : actions/checkout@v4
27+ with :
28+ fetch-depth : 0
2629
2730 - name : Bump release version and push tag
2831 id : version
4649 publish :
4750 name : Build and publish Docker image to GitHub Packages
4851 needs : release
49- if : needs.release.outputs.part != 'patch'
5052 runs-on : ubuntu-latest
5153 permissions :
5254 packages : write
@@ -82,12 +84,10 @@ jobs:
8284 - name : Set up QEMU
8385 uses : docker/setup-qemu-action@v3
8486 with :
85- platforms : linux/${{ matrix.arch }}
87+ platforms : arm64
8688
8789 - name : Set up Docker Buildx
8890 uses : docker/setup-buildx-action@v3
89- with :
90- platforms : linux/${{ matrix.arch }}
9191 env :
9292 BUILDX_NO_DEFAULT_ATTESTATIONS : 1
9393
@@ -100,7 +100,7 @@ jobs:
100100 push : true
101101 tags : |
102102 ghcr.io/${{ github.repository }}/management:${{ needs.release.outputs.new_tag }}
103- ghcr.io/${{ github.repository }}/management:latest
103+ ${{ needs.release.outputs.part != 'patch' && ' ghcr.io/${{ github.repository }}/management:latest' || '' }}
104104 labels : ${{ steps.meta.outputs.labels }}
105105 cache-from : type=gha
106106 cache-to : type=gha,mode=max
@@ -116,7 +116,7 @@ jobs:
116116 push : true
117117 tags : |
118118 ghcr.io/${{ github.repository }}/api:${{ needs.release.outputs.new_tag }}
119- ghcr.io/${{ github.repository }}/api:latest
119+ ${{ needs.release.outputs.part != 'patch' && ' ghcr.io/${{ github.repository }}/api:latest' || '' }}
120120 labels : ${{ steps.meta.outputs.labels }}
121121 cache-from : type=gha
122122 cache-to : type=gha,mode=max
0 commit comments