File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 5353 out
5454 ~/.foundry
5555
56+ - name : Install Cosign
57+ uses : sigstore/cosign-installer@v3
58+
5659 - name : Login to GitHub Container Registry
5760 uses : docker/login-action@v3
5861 with :
@@ -83,12 +86,12 @@ jobs:
8386 id : test
8487
8588 - name : Docker meta
86- id : meta
89+ id : docker_meta
8790 uses : docker/metadata-action@v5
8891 with :
8992 # list of Docker images to use as base name for tags
9093 images : |
91- ghcr.io/settlemint/solidity-empty
94+ ghcr.io/settlemint/solidity-token-erc721a
9295 # generate Docker tags based on the following events/attributes
9396 tags : |
9497 type=schedule
@@ -101,9 +104,24 @@ jobs:
101104
102105 - name : Build and push
103106 uses : docker/build-push-action@v5
107+ id : build-and-push
104108 with :
109+ load : false
110+ provenance : true
111+ sbom : true
112+ push : true
105113 platforms : linux/amd64,linux/arm64
106- push : ${{ github.event_name != 'pull_request' }}
107- tags : ${{ steps.meta.outputs.tags }}
108- labels : ${{ steps.meta.outputs.labels }}
114+ tags : ${{ steps.docker_meta.outputs.tags }}
115+ labels : ${{ steps.docker_meta.outputs.labels }}
109116 no-cache : true
117+
118+ - name : Sign the images with GitHub OIDC Token
119+ env :
120+ DIGEST : ${{ steps.build-and-push.outputs.digest }}
121+ TAGS : ${{ steps.docker_meta.outputs.tags }}
122+ run : |
123+ images=""
124+ for tag in ${TAGS}; do
125+ images+="${tag}@${DIGEST} "
126+ done
127+ cosign sign --yes ${images}
You can’t perform that action at this time.
0 commit comments