Skip to content

Commit

Permalink
Creating docker-image.yml
Browse files Browse the repository at this point in the history
Creating the workflow that will create a Dockerfile after a PR with label: CI:Build
  • Loading branch information
san-est authored Jun 11, 2024
1 parent caa066d commit b1ae96e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit b1ae96e

Please sign in to comment.