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

This commit is contained in:
Krishan authored and GitHub committed 2022-03-30 18:38:52 +05:30
1 parent d61eef7747
commit 7ea0435572
2 files changed
+20 -5

No files matched your search

-5
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
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