Skip to content

Commit

Permalink
fix: devnet CI issues (#7673)
Browse files Browse the repository at this point in the history
- Exit 0 CI if aztec CLI commands fail
- Use different private key for publishing contracts to avoid nonce
problems with publisher PK
  • Loading branch information
spypsy authored Jul 30, 2024
1 parent bc3689f commit 729b36f
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/devnet-deploys.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,18 @@ jobs:
run: |
docker pull aztecprotocol/aztec:${{ env.DEPLOY_TAG }}
docker run aztecprotocol/aztec:${{ env.DEPLOY_TAG }} deploy-l1-contracts \
--private-key ${{ secrets.SEQ_1_PUBLISHER_PRIVATE_KEY }} \
--private-key ${{ secrets.CONTRACT_PUBLISHER_PRIVATE_KEY }} \
--rpc-url https://${{ env.DEPLOY_TAG }}-mainnet-fork.aztec.network:8545/${{ secrets.FORK_API_KEY }} \
--l1-chain-id ${{ env.L1_CHAIN_ID }} \
--json \
| tee ./l1_contracts.json
if [ $? -ne 0 ]; then
echo "deploy-l1-contracts command failed"
exit 1
fi
# upload contract addresses to S3
aws s3 cp ./l1_contracts.json ${{ env.CONTRACT_S3_BUCKET }}/${{ env.DEPLOY_TAG }}/l1_contracts.json
Expand Down Expand Up @@ -211,6 +217,11 @@ jobs:
--json \
| tee ./protocol_contracts.json
if [ $? -ne 0 ]; then
echo "deploy-protocol-contracts command failed"
exit 1
fi
aws s3 cp ./protocol_contracts.json ${{ env.CONTRACT_S3_BUCKET }}/${{ env.DEPLOY_TAG }}/protocol_contracts.json
- name: Bootstrap network
Expand All @@ -220,10 +231,15 @@ jobs:
--rpc-url https://api.aztec.network/${{ env.DEPLOY_TAG }}/aztec-pxe/${{ secrets.FORK_API_KEY }} \
--l1-rpc-url https://${{ env.DEPLOY_TAG }}-mainnet-fork.aztec.network:8545/${{ secrets.FORK_API_KEY }} \
--l1-chain-id ${{ env.L1_CHAIN_ID }} \
--l1-private-key ${{ secrets.SEQ_1_PUBLISHER_PRIVATE_KEY }} \
--l1-private-key ${{ secrets.CONTRACT_PUBLISHER_PRIVATE_KEY }} \
--json \
| tee ./basic_contracts.json
if [ $? -ne 0 ]; then
echo "bootstrap-network command failed"
exit 1
fi
aws s3 cp ./basic_contracts.json ${{ env.CONTRACT_S3_BUCKET }}/${{ env.DEPLOY_TAG }}/basic_contracts.json
deploy-faucet:
Expand Down

0 comments on commit 729b36f

Please sign in to comment.