Skip to content

Commit

Permalink
Updating deploy Hardhat workflow
Browse files Browse the repository at this point in the history
Alsoe removing docker file and docker compose for hardhat as I dont think i will be needing them.
  • Loading branch information
san-est committed Jun 14, 2024
1 parent e788f8e commit b22493e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 23 deletions.
16 changes: 15 additions & 1 deletion .github/workflows/deploy-hardhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,18 @@ jobs:
run: docker pull ghcr.io/san-est/go-ethereum-devops:9

- name: Running image container
run: docker run -d -name devnet -p 8545:8545 -v
run: |
docker run -d -name devnet -p 8545:8545 -v ${{ github.workspace }}/hardhat: /workspace/hardhat ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:9
- 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
- name: Build a new docker image
run: |
docker commit devnet go-eth-hardhat:latest
docker tag go-eth-hardhat:latest ${{ env.REGISTRY }}/${{ github.repository_owner }}/go-eth-hardhat:latest
- name: Push new image to ghcr.io
run: docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/go-eth-hardhat:latest
8 changes: 0 additions & 8 deletions hardhat/Dockerfile

This file was deleted.

14 changes: 0 additions & 14 deletions hardhat/docker-compose.yml

This file was deleted.

0 comments on commit b22493e

Please sign in to comment.