Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signing everything inside circle ci #538

Merged
merged 1 commit into from
Nov 18, 2024
Merged
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
40 changes: 25 additions & 15 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ jobs:
steps:
- setup_remote_docker
- checkout
- run:
name: Import GPG Key
command: |
echo -e "$GPG_PRIVATE_KEY" | gpg --import
echo -e "trust\n5\ny\n" | gpg --command-fd 0 --edit-key 4C19E4CC17E67B7B
- run:
name: Configure Git for Signing
command: |
git config --global user.signingkey 4C19E4CC17E67B7B
git config --global commit.gpgSign true
- run:
name: "Create build branch"
command: |
Expand Down Expand Up @@ -170,7 +180,7 @@ jobs:
git pull
# Check for wasm changes
git add framework/artifacts --force
git commit -m 'Update framework WASM' || true
git commit -S -m 'Update framework WASM' || true
git push origin "$CIRCLE_BRANCH-build" || true
- run:
name: Remove temporary branch if it failed during build framework
Expand Down Expand Up @@ -228,7 +238,7 @@ jobs:
git pull
# Check for wasm changes
git add modules/artifacts --force
git commit -m 'Update modules WASM [skip ci]' || true
git commit -S -m 'Update modules WASM [skip ci]' || true
git push origin "$CIRCLE_BRANCH-build" || true
- run:
name: Remove temporary branch if it failed during building modules
Expand Down Expand Up @@ -285,7 +295,7 @@ jobs:
git pull
# Check for schema changes
git add schema --force
git commit -m 'Update Schemas [skip ci]' || true
git commit -S -m 'Update Schemas [skip ci]' || true
git push origin "$CIRCLE_BRANCH-build" || true
- run:
name: Remove temporary branch if it failed during build schemas
Expand All @@ -303,16 +313,6 @@ jobs:
steps:
- setup_remote_docker
- checkout
- run:
name: Import GPG Key
command: |
echo -e "$GPG_PRIVATE_KEY" | gpg --import
echo -e "trust\n5\ny\n" | gpg --command-fd 0 --edit-key 4C19E4CC17E67B7B
- run:
name: Configure Git for Signing
command: |
git config --global user.signingkey 4C19E4CC17E67B7B
git config --global commit.gpgSign true
- run:
name: "Merge build branch"
command: |
Expand Down Expand Up @@ -377,13 +377,23 @@ jobs:
export TEST_MNEMONIC="$decoded_value"
cd framework
cargo run --bin full_deploy -- --network-ids $NETWORKS
- run:
name: Import GPG Key
command: |
echo -e "$GPG_PRIVATE_KEY" | gpg --import
echo -e "trust\n5\ny\n" | gpg --command-fd 0 --edit-key 4C19E4CC17E67B7B
- run:
name: Configure Git for Signing
command: |
git config --global user.signingkey 4C19E4CC17E67B7B
git config --global commit.gpgSign true
- run:
name: Commit and push deploy file
command: |
git config --global user.name 'CircleCI'
git config --global user.email 'circleci@example.com'
git add framework/scripts --force
git commit -m 'Update deploy deploy file [skip ci]'
git commit -S -m 'Update deploy deploy file [skip ci]'
git push origin $CIRCLE_BRANCH
- run:
name: Commit and push state file
Expand All @@ -392,7 +402,7 @@ jobs:
git config --global user.email 'circleci@example.com'
cp ~/.cw-orchestrator/state.json ./framework/scripts/
git add ./framework/scripts/state.json
git commit -m 'Update deploy deploy file [skip ci]'
git commit -S -m 'Update deploy deploy file [skip ci]'
git push origin $CIRCLE_BRANCH
- save_cache:
paths:
Expand Down
Loading