Skip to content

Commit

Permalink
reworking workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
san-est committed Jun 14, 2024
1 parent 1380c9d commit ca6e49b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy-hardhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,15 @@ jobs:
run: |
docker run -d --name devnet -p 8545:8545 -v ${{ github.workspace }}/hardhat:/workspace/hardhat ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:9
- name: Installing Node.js and npm so that hardhat can run
- name: Installing Node.js, npm and local hardhat so that hardhat sample can run
run: |
docker exec devnet apk add --no-cache nodejs npm
docker exec devnet sh -c "cd /workspace/hardhat && npm install
- name: Installing local hardhat
run: |
docker exec devnet sh -c "cd /workspace/hardhat && npm install --save-dev hardhat"
- name: Deploy hardhat sample project
run: |
docker exec devnet npx hardhat compile --config /workspace/hardhat/hardhat.config.js
docker exec devnet npx hardhat run /workspace/hardhat/scripts/deploy.js --network development
docker exec devnet npx hardhat run /workspace/hardhat/scripts/deploy.js --network devnet
- name: Build a new docker image
run: |
Expand Down

0 comments on commit ca6e49b

Please sign in to comment.