init docker build workflow
This commit is contained in:
17
.github/workflows/docker-build.yaml
vendored
Normal file
17
.github/workflows/docker-build.yaml
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
name: Build and push Docker image
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
if_merged:
|
||||||
|
if: github.event.pull_request.merged == true
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: |
|
||||||
|
echo The PR was merged
|
||||||
|
|
||||||
Reference in New Issue
Block a user