Skip to content

Commit

Permalink
WIP Use make target to build docker img
Browse files Browse the repository at this point in the history
  • Loading branch information
mikogs committed Jan 15, 2024
1 parent 9627354 commit 99fba0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/relayer-build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,9 @@ jobs:
npm install typechain
cargo install cargo-contract
- name: Compile contracts
shell: bash
run: |
make azero-deps
make compile-azero
make eth-deps
make compile-eth
- name: Build relayer
run: |
cd relayer
cargo build
ls -al
find .
make build-docker-relayer DOCKER_RELAYER_NAME=most-relayer-${{ steps.get-ref-properties.outputs.sha }}
# Run docker build and if it runs then happy days
# Login to AWS and push to ECR as 'membrane-bridge-relayer'
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
NETWORK ?= development
AZERO_ENV ?= dev
DOCKER_RELAYER_NAME ?= most-relayer

export BRIDGENET_START_BLOCK=`ENDPOINT=https://rpc-fe-bridgenet.dev.azero.dev ./relayer/scripts/azero_best_finalized.sh`
export CONTRACT_VERSION ?=`git rev-parse HEAD`
Expand Down Expand Up @@ -273,7 +274,7 @@ build-docker-relayer: compile-azero compile-eth
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 most-relayer .
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
Expand Down

0 comments on commit 99fba0b

Please sign in to comment.