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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 5 deletions

View file

@ -32,8 +32,3 @@ jobs:
name: pr.json name: pr.json
path: pr.json path: pr.json
retention-days: 1 retention-days: 1
- name: Build Docker image
uses: docker/build-push-action@v2.10.0
with:
context: .
push: false

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