From e788f8eac23f509cdcd37e1a2b766ff81b885c0b Mon Sep 17 00:00:00 2001 From: Vasil Boyadzhiev Date: Fri, 14 Jun 2024 11:09:23 +0300 Subject: [PATCH] Create deploy-hardhat.yml Starting deployment workflow for hardhat. --- .github/workflows/deploy-hardhat.yml | 37 ++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/deploy-hardhat.yml diff --git a/.github/workflows/deploy-hardhat.yml b/.github/workflows/deploy-hardhat.yml new file mode 100644 index 000000000000..b331ba2fb10f --- /dev/null +++ b/.github/workflows/deploy-hardhat.yml @@ -0,0 +1,37 @@ +name: Deploying hardhat + +on: + pull_request: + branches: ["master"] + + workflow_dispatch: + +env: + REGISTRY: ghcr.io + IMAGE_NAME: san-est/go-ethereum-devops + +jobs: + deploy-hardhat: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + id-token: write + steps: + - uses: actions/checkout@v4 + + - name: Login to registry + uses: docker/login-action@v2 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Pull image + 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