This commit is contained in:
Ruslan Gladov 2024-06-30 18:20:44 +03:00
parent 3355523970
commit 2c9ff61c30
2 changed files with 18 additions and 8 deletions

View file

@ -52,18 +52,19 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: hardhat/Dockerfile
push: true
tags: e1018mc/limechain:smart_contract
- name: Run local devnet
run: docker-compose up -d
- name: Build a new image with Apollo contract
run: docker build -t hardhat-ignition .
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: e1018mc/limechain:apollo_contract
- name: Destroy local devnet
run: docker-compose down

View file

@ -5,11 +5,20 @@ services:
image: e1018mc/limechain:go-ethereum-app
platform: linux/x86_64
ports:
- "8545:8545"
- "8546:8546"
environment:
- ENV_VAR=Test
networks:
- devnet
app2:
image: e1018mc/limechain:smart_contract
platform: linux/x86_64
ports:
- "8545:8545"
environment:
- ENV_VAR=Test-contracts
networks:
- devnet
networks:
devnet: