From a810235ed3d3235ab9d4add20235baf30ba9312f Mon Sep 17 00:00:00 2001 From: Stilian Boyadzhiev Date: Thu, 29 May 2025 20:06:51 +0300 Subject: [PATCH] add steps for manual execution of the workflow --- .github/workflows/hell.yml | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/.github/workflows/hell.yml b/.github/workflows/hell.yml index bae1f6326e..f074b49011 100644 --- a/.github/workflows/hell.yml +++ b/.github/workflows/hell.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - run-if-merged-and-has-label: + ci-build-on-merge: if: | github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'CI:Build') @@ -29,4 +29,25 @@ jobs: file: ./Dockerfile # Path to the Dockerfile if not root platforms: linux/amd64 # Add ,linux/arm64 if you need multi-arch push: true # Change to false to keep image local to runner - tags: go-etherium-satan:latest \ No newline at end of file + tags: go-etherium-satan:latest + ci-build-manual: + if: github.event_name == 'workflow_dispatch' + runs-on: ubuntu-latest + steps: + # Pull the code + - name: Checkout code + uses: actions/checkout@v4 + + # Install Docker Buildx + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + # Build (and optionally push) the image + - name: Build and push image + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile # Path to the Dockerfile if not root + platforms: linux/amd64 # Add ,linux/arm64 if you need multi-arch + push: true # Change to false to keep image local to runner + tags: go-etherium-satan:latest