Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/contracts/chainloop-vault-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ spec:
with:
requirement_name: sbom-compliance
gate: true
attestation_phases:
- INIT
- ref: source-commit
with:
check_signature: yes
Expand Down
25 changes: 15 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
attestation_hash: ${{ steps.attest_goreleaser.outputs.attestation_hash }}
current_version: ${{ steps.project_version.outputs.current_version }}

steps:
- name: Install Cosign
Expand Down Expand Up @@ -171,17 +172,11 @@ jobs:
gh release download ${{ github.ref_name }} -A tar.gz -O /tmp/source-code.tar.gz
chainloop attestation add --name source-code --value /tmp/source-code.tar.gz --kind ARTIFACT --attestation-id ${{ env.ATTESTATION_ID }}
- name: Promote Chainloop Project Version
env:
CHAINLOOP_PROJECT_NAME: "chainloop"
CHAINLOOP_TOKEN: ${{ secrets.CHAINLOOP_TOKEN }}
- name: Read current project version
id: project_version
run: |
current_version="$(cat .chainloop.yml | awk '/^projectVersion:/ {print $2}')"
# Rename the existing pre-release into the actual release name
echo "current_version=$current_version"
echo "target_version=${{ github.ref_name }}"
chainloop org describe
chainloop project version update --project ${CHAINLOOP_PROJECT_NAME} --name $current_version --new-name ${{ github.ref_name }} || true
current_version="$(awk '/^projectVersion:/ {print $2}' .chainloop.yml)"
echo "current_version=$current_version" >> $GITHUB_OUTPUT
- name: Bump Chart and Dagger Version
run: .github/workflows/utils/bump-chart-and-dagger-version.sh deployment/chainloop extras/dagger ${{ github.ref_name }}
Expand Down Expand Up @@ -230,6 +225,16 @@ jobs:
exit 1
fi
- name: Promote Chainloop Project Version
if: ${{ success() }}
env:
CURRENT_VERSION: ${{ needs.release.outputs.current_version }}
TARGET_VERSION: ${{ github.ref_name }}
run: |
echo "current_version=$CURRENT_VERSION"
echo "target_version=$TARGET_VERSION"
chainloop project version update --project chainloop --name "$CURRENT_VERSION" --new-name "$TARGET_VERSION" || true
- name: Mark attestation as failed
if: ${{ failure() }}
run: |
Expand Down
Loading