mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-31 04:04:21 -04:00
Skip docker build if files did not change
This commit is contained in:
parent
e3824fc740
commit
21dffc846e
8
.github/workflows/docker.yml
vendored
8
.github/workflows/docker.yml
vendored
@ -34,6 +34,13 @@ jobs:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- uses: dorny/paths-filter@v2
|
||||
id: filter
|
||||
with:
|
||||
filters: |
|
||||
should_run:
|
||||
- '${{matrix.context}}/**'
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
@ -65,6 +72,7 @@ jobs:
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
if: steps.filter.outputs.should_build
|
||||
with:
|
||||
context: ${{matrix.context}}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
|
Loading…
x
Reference in New Issue
Block a user