Skip to content

Commit

Permalink
Skip docker build if files did not change
Browse files Browse the repository at this point in the history
  • Loading branch information
zoriya committed Dec 12, 2023
1 parent e3824fc commit 21dffc8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 21dffc8

Please sign in to comment.