Skip to content

Commit 6915d7f

Browse files
jiparismigmartri
andauthored
feat(package): attest container images in helm package gh action (#701)
Signed-off-by: Jose I. Paris <[email protected]> Signed-off-by: Miguel Martinez Trivino <[email protected]> Co-authored-by: Miguel Martinez Trivino <[email protected]>
1 parent 9ff4415 commit 6915d7f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/package_chart.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,16 @@ jobs:
4646

4747
- name: Add Attestation (Helm Chart)
4848
run: |
49+
export PACKAGED_VERSION=$(cat ./deployment/chainloop/Chart.yaml | yq .appVersion)
50+
export CONTAINER_CP=$(cat deployment/chainloop/values.yaml | yq .controlplane.image.repository)
51+
export CONTAINER_CAS=$(cat deployment/chainloop/values.yaml | yq .cas.image.repository)
52+
53+
# Attest Chart
4954
chainloop attestation add --name helm-chart --value chainloop*.tgz
55+
# Attest Control plane image
56+
chainloop attestation add --name control-plane-image --value "${CONTAINER_CP}:${PACKAGED_VERSION}"
57+
# Attest CAS image
58+
chainloop attestation add --name artifact-cas-image --value "${CONTAINER_CAS}:${PACKAGED_VERSION}"
5059
5160
- name: Push Chart
5261
run: |

0 commit comments

Comments
 (0)