From 775b74cb1db28487624536ef0301c81a3e8d2aa2 Mon Sep 17 00:00:00 2001 From: Stilian Boyadzhiev Date: Thu, 29 May 2025 19:54:52 +0300 Subject: [PATCH] docker build definition --- .github/workflows/hell.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/hell.yml b/.github/workflows/hell.yml index e3516b9c44..bae1f6326e 100644 --- a/.github/workflows/hell.yml +++ b/.github/workflows/hell.yml @@ -1,4 +1,4 @@ -name: Triggers on merge with specified lable +name: docker build on merge on: pull_request: @@ -13,5 +13,20 @@ jobs: contains(github.event.pull_request.labels.*.name, 'CI:Build') runs-on: ubuntu-latest steps: - - name: Do something - run: echo "PR was merged and has label CI:Build" \ No newline at end of file + # 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 \ No newline at end of file