Creating docker-image.yml

Creating the workflow that will create a Dockerfile after a PR with label: CI:Build
This commit is contained in:
Vasil Boyadzhiev 2024-06-11 22:31:46 +03:00 committed by GitHub
parent caa066dcb0
commit b1ae96ee43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

19
.github/workflows/docker-image.yml vendored Normal file
View file

@ -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)