From b1ae96ee43a3510dbb4e4f15be2c15b5862bfc02 Mon Sep 17 00:00:00 2001 From: Vasil Boyadzhiev Date: Tue, 11 Jun 2024 22:31:46 +0300 Subject: [PATCH] Creating docker-image.yml Creating the workflow that will create a Dockerfile after a PR with label: CI:Build --- .github/workflows/docker-image.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 000000000000..37b5ff1e8236 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,19 @@ +name: Build Docker image for project + +on: + push: + types: [labeled] + pull_request: + types: [labeled] + +jobs: + + build: + + runs-on: ubuntu-latest + if: ${{ (github.event_name == 'pull_request' && github.event.label.name == 'CI:Build') }} + steps: + + - uses: actions/checkout@v4 + - name: Build the Docker image + run: docker build . --file Dockerfile --tag go-etherium-devops:$(date +%s)