Skip to content

Commit d0621ac

Browse files
committed
chore(ci): add materials
1 parent 4f17ec3 commit d0621ac

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/release.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
fetch-depth: 0
3030

3131
- name: Initialize Attestation
32-
run: chainloop attestation init --contract-revision 1
32+
run: chainloop attestation init --contract-revision 2
3333

3434
- name: Set up Go
3535
uses: actions/setup-go@v3
@@ -64,6 +64,18 @@ jobs:
6464
env:
6565
IMAGE: ghcr.io/migmartri/simple-todo:${{ github.ref_name }}
6666

67+
- name: Add Container Image Artifact
68+
run: chainloop attestation add --name image --value ghcr.io/migmartri/simple-todo:${{ github.ref_name }}
69+
70+
- name: Add SBOM Artifact
71+
run: chainloop attestation add --name sbom --value /tmp/sbom.cyclonedx.json
72+
73+
- name: Add Binary Artifact
74+
run: |
75+
BINARY_PATH="$(echo -n '${{ steps.release.outputs.metadata }}' | jq -r '"dist/" + .project_name + "_" + .version + "_" + .runtime.goos + "_" + .runtime.goarch + ".tar.gz"')"
76+
77+
chainloop attestation add --name binary --value ${BINARY_PATH}
78+
6779
- name: Finish and Record Attestation
6880
if: ${{ success() }}
6981
run: |

0 commit comments

Comments
 (0)