Skip to content

Commit 3ad8452

Browse files
authored
chore(ci): fix helm package (#2459)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent 5b3431a commit 3ad8452

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/package_chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ jobs:
5757

5858
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
5959

60-
- name: Initialize Attestation
61-
run: |
62-
chainloop attestation init --workflow ${CHAINLOOP_WORKFLOW_NAME} --project ${CHAINLOOP_PROJECT} --debug
63-
6460
- name: Package Chart
6561
run: helm package deployment/chainloop/
6662

@@ -69,6 +65,10 @@ jobs:
6965
export CONTAINER_CP=$(cat deployment/chainloop/Chart.yaml | yq -r .annotations.images | yq -r '.[] | select(.name == "control-plane") | .image')
7066
export CONTAINER_CAS=$(cat deployment/chainloop/Chart.yaml | yq -r .annotations.images | yq -r '.[] | select(.name == "artifact-cas") | .image')
7167
chart_version=$(cat deployment/chainloop/Chart.yaml | yq .version)
68+
app_version=$(cat deployment/chainloop/Chart.yaml | yq .appVersion)
69+
70+
# Force the version that's inside the Chart.yaml file
71+
chainloop attestation init --workflow ${CHAINLOOP_WORKFLOW_NAME} --project ${CHAINLOOP_PROJECT} --version ${app_version}
7272
7373
# Attest Control plane image
7474
chainloop attestation add --name control-plane-image --value "${CONTAINER_CP}"

0 commit comments

Comments
 (0)