From a266309d74414595bc53b26f1de34f935ba4c529 Mon Sep 17 00:00:00 2001 From: denislav-mladenov Date: Wed, 17 Jul 2024 21:23:29 +0300 Subject: [PATCH] Testing deployment --- .github/workflows/docker-deploy.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-deploy.yml b/.github/workflows/docker-deploy.yml index 60739a88b7..7d921143d2 100644 --- a/.github/workflows/docker-deploy.yml +++ b/.github/workflows/docker-deploy.yml @@ -38,7 +38,6 @@ jobs: - name: Running image container run: | - echo "Workspace path: /workspace/hardhat" docker run -d --name go-ethereum -p 8545:8545 -p 8546:8546 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \ --dev \ --http \ @@ -55,7 +54,7 @@ jobs: - name: Copying the hardhat files to the container run: | docker exec go-ethereum mkdir -p /workspace/hardhat - docker cp ${{ github.workspace }}/hardhat go-ethereum:/workspace/hardhat + docker cp ${{ github.workspace }}/hardhat/. go-ethereum:/workspace/hardhat docker exec go-ethereum ls -larth /workspace/hardhat - name: Installing the required Node.js and npm @@ -68,13 +67,14 @@ jobs: - name: Checking the hardhat version to verify that its working properly run: docker exec go-ethereum npx hardhat --version + - name: Verify Hardhat project + run: docker exec go-ethereum sh -c "cd /workspace/hardhat && ls -larth && cat hardhat.config.js" + - name: Deploy hardhat sample project - run: | - docker exec go-ethereum sh -c "cd /LimeChainTask/go-ethereum/hardhat && yes | npx hardhat ignition deploy ./ignition/modules/Token.js --network devnet" + run: docker exec go-ethereum sh -c "cd /workspace/hardhat && npx hardhat ignition deploy ./ignition/modules/Token.js --network devnet" - name: Testing contracts - run: | - docker exec go-ethereum sh -c "cd /workspace/hardhat && npx hardhat test" + run: docker exec go-ethereum sh -c "cd /workspace/hardhat && npx hardhat test" - name: Build a new docker image run: |