File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1212 build-client-webpack :
1313 uses : ./.github/workflows/client-webpack.yml
1414
15- build-server-image :
16- uses : ./.github/workflows/server-image.yml
17-
1815 release :
19- needs : [ build-client-webpack, build-server-image]
16+ needs : build-client-webpack
2017 runs-on : ubuntu-latest
2118
2219 steps :
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: Build and push back-end server Docker image
33on :
44 workflow_call :
55 workflow_dispatch :
6+ # Run automatically when a new tag is created
7+ push :
8+ tags :
9+ - ' v0.*' # alpha
10+ - ' v1.*' # release
611
712env :
813 REGISTRY : ghcr.io
4752 images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
4853
4954 - name : Build and push container image
55+ id : push
5056 uses : docker/build-push-action@e551b19e49efd4e98792db7592c17c09b89db8d8 # v3.0.0
5157 with :
5258 file : ./server/Dockerfile
5359 context : ./server
5460 push : true
55- tags : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
61+ tags : ${{ steps.meta.outputs.tags }}
62+ labels : ${{ steps.meta.outputs.labels }}
63+
64+ - name : Generate artifact attestation
65+ uses : actions/attest-build-provenance@v2
66+ with :
67+ subject-name : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
68+ subject-digest : ${{ steps.push.outputs.digest }}
69+ push-to-registry : true
You can’t perform that action at this time.
0 commit comments