Skip to content

Commit 7405d88

Browse files
authored
chor(ci): make sure version exists during package (#2543)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent 09d65fb commit 7405d88

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Install Chainloop
3636
if: ${{ github.event_name != 'pull_request' }}
3737
run: |
38-
curl -sfL https://raw.githubusercontent.com/chainloop-dev/chainloop/8a12fce328929abf012c96a07bddfeaf94c74ed4/docs/static/install.sh | bash -s
38+
curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s
3939
4040
- name: Checkout repository
4141
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

.github/workflows/github_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
- name: Install Chainloop
3535
run: |
36-
curl -sfL https://raw.githubusercontent.com/chainloop-dev/chainloop/8a12fce328929abf012c96a07bddfeaf94c74ed4/docs/static/install.sh | bash -s
36+
curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s
3737
3838
- name: Initialize Attestation
3939
run: |

.github/workflows/package_chart.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
steps:
3939
- name: Install Chainloop
4040
run: |
41-
curl -sfL https://raw.githubusercontent.com/chainloop-dev/chainloop/8a12fce328929abf012c96a07bddfeaf94c74ed4/docs/static/install.sh | bash -s
41+
curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s
4242
4343
- name: Docker login to Github Packages
4444
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0
@@ -68,7 +68,9 @@ jobs:
6868
app_version=$(cat deployment/chainloop/Chart.yaml | yq .appVersion)
6969
7070
# Force the version that's inside the Chart.yaml file
71-
chainloop attestation init --workflow ${CHAINLOOP_WORKFLOW_NAME} --project ${CHAINLOOP_PROJECT} --version ${app_version}
71+
# and make sure it exists in the project by passing the --existing-version flag
72+
# if it doesn't exist, the attestation will fail, and first we need to create/update/rename the version in the project and re-run the job
73+
chainloop attestation init --workflow ${CHAINLOOP_WORKFLOW_NAME} --project ${CHAINLOOP_PROJECT} --version ${app_version} --existing-version
7274
7375
# Attest Control plane image
7476
chainloop attestation add --name control-plane-image --value "${CONTAINER_CP}"

0 commit comments

Comments
 (0)