mirror of
https://github.com/cinnyapp/cinny.git
synced 2024-12-29 10:56:10 +00:00
Fix docker check to only run on Dockerfile change (#452)
This commit is contained in:
parent
3a3a830706
commit
44ab6f181c
5
.github/workflows/build-pull-request.yml
vendored
5
.github/workflows/build-pull-request.yml
vendored
|
@ -32,8 +32,3 @@ jobs:
|
|||
name: pr.json
|
||||
path: pr.json
|
||||
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
20
.github/workflows/docker-pr.yml
vendored
Normal 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
|
Loading…
Reference in a new issue