Fix docker check to only run on Dockerfile change (#452)

This commit is contained in:
Krishan
2022-03-30 18:38:52 +05:30
committed by GitHub
parent 3a3a830706
commit 44ab6f181c
2 changed files with 20 additions and 5 deletions

20
.github/workflows/docker-pr.yml vendored Normal file
View File

@@ -0,0 +1,20 @@
name: 'Docker check'
on:
pull_request:
paths:
- 'Dockerfile'
jobs:
docker-build:
runs-on: ubuntu-latest
env:
PR_NUMBER: ${{github.event.number}}
steps:
- name: Checkout repository
uses: actions/checkout@v3.0.0
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
with:
context: .
push: false