Skip to content

Commit

Permalink
Download contract addresses etc. from S3 bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolajgs committed Jan 15, 2024
1 parent 425a073 commit 06c09ae
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-contracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
push:
branches:
- master
- A0-3158-dockerize-relayer
#- A0-3158-dockerize-relayer

jobs:
test-azero-contracts:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/relayer-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,18 @@ jobs:
npm install typechain
cargo install cargo-contract
- name: Download files from S3 AWS bucket
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_DEVNET_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_DEVNET_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-central-1
run: |
mkdir -p azero/artifacts
aws s3 cp s3://alephzero-devnet-contracts-test/miko-test/most/425a073ca09f83420218ea1e4fdd3d62036bf4da/relayer/fe_bridgenet/azero_addresses.json azero/addresses.json
aws s3 cp s3://alephzero-devnet-contracts-test/miko-test/most/425a073ca09f83420218ea1e4fdd3d62036bf4da/relayer/fe_bridgenet/eth_addresses.json eth/addresses.json
aws s3 cp s3://alephzero-devnet-contracts-test/miko-test/most/425a073ca09f83420218ea1e4fdd3d62036bf4da/relayer/fe_bridgenet/most.json azero/artifacts/most.json
- name: Build relayer
run: |
make build-docker-relayer DOCKER_RELAYER_NAME=most-relayer-${{ steps.get-ref-properties.outputs.sha }}
Expand Down
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -271,11 +271,11 @@ format: rust-format js-format
build-docker-relayer: # Build relayer docker image
build-docker-relayer: compile-azero compile-eth
cd relayer && cargo build --release
#cp azero/addresses.json relayer/azero_addresses.json
#cp eth/addresses.json relayer/eth_addresses.json
#cp azero/artifacts/most.json relayer/most.json
#cd relayer && docker build -t $(DOCKER_RELAYER_NAME) .
#rm relayer/azero_addresses.json relayer/eth_addresses.json relayer/most.json
cp azero/addresses.json relayer/azero_addresses.json
cp eth/addresses.json relayer/eth_addresses.json
cp azero/artifacts/most.json relayer/most.json
cd relayer && docker build -t $(DOCKER_RELAYER_NAME) .
rm relayer/azero_addresses.json relayer/eth_addresses.json relayer/most.json

contract_spec.json: # Generate a a file describing deployed contracts based on addresses.json files
contract_spec.json: azero/addresses.json eth/addresses.json
Expand Down

0 comments on commit 06c09ae

Please sign in to comment.