From b5f925dc0d193e39ca857174c3899d6d530fd3c4 Mon Sep 17 00:00:00 2001 From: denislav-mladenov Date: Wed, 17 Jul 2024 21:06:23 +0300 Subject: [PATCH] Testing the deployment --- .github/workflows/docker-deploy.yml | 34 ++++++++++++++--------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/docker-deploy.yml b/.github/workflows/docker-deploy.yml index 0f3e92eb26..6cb298ff6e 100644 --- a/.github/workflows/docker-deploy.yml +++ b/.github/workflows/docker-deploy.yml @@ -1,5 +1,5 @@ name: deploy-hardhat - + on: pull_request: branches: [ "master" ] @@ -13,7 +13,7 @@ env: jobs: deploy-hardhat: - if: ${{ github.event.label.name == 'CI:Deploy' }} + if: github.event.label.name == 'CI:Deploy' runs-on: ubuntu-latest permissions: contents: read @@ -39,23 +39,23 @@ jobs: - name: Running image container run: | echo "Workspace path: /workspace/hardhat" - docker run -d --name go-ethereum -p 8545:8545 -p 8546:8546 ghcr.io/denislav-mladenov/go-ethereum:latest \ - --dev - --http - --http.addr 0.0.0.0 - --http.port 8545 - --http.corsdomain "*" - --http.api personal,db,eth,net,web3 - --ws - --ws.addr 0.0.0.0 - --ws.port 8546 - --ws.origins "*" - --ws.api personal,db,eth,net,web3 + docker run -d --name go-ethereum -p 8545:8545 -p 8546:8546 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \ + --dev \ + --http \ + --http.addr 0.0.0.0 \ + --http.port 8545 \ + --http.corsdomain "*" \ + --http.api personal,db,eth,net,web3 \ + --ws \ + --ws.addr 0.0.0.0 \ + --ws.port 8546 \ + --ws.origins "*" \ + --ws.api personal,db,eth,net,web3 - 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/ + 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 @@ -66,8 +66,7 @@ jobs: run: docker exec go-ethereum sh -c "cd /workspace/hardhat && npm install --save-dev hardhat" - name: Checking the hardhat version to verify that its working properly - run: | - docker exec go-ethereum npx hardhat --version + run: docker exec go-ethereum npx hardhat --version - name: Deploy hardhat sample project run: | @@ -84,3 +83,4 @@ jobs: - name: Push new image to ghcr.io run: docker push ${{ env.REGISTRY }}/${{ github.repository_owner }}/go-eth-hardhat:latest +