mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
Creating docker-image.yml
Creating the workflow that will create a Dockerfile after a PR with label: CI:Build
This commit is contained in:
parent
caa066dcb0
commit
b1ae96ee43
1 changed files with 19 additions and 0 deletions
19
.github/workflows/docker-image.yml
vendored
Normal file
19
.github/workflows/docker-image.yml
vendored
Normal 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)
|
||||||
Loading…
Reference in a new issue