Skip to content

Commit

Permalink
only build static image if necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
squi-ddy authored Dec 23, 2023
1 parent cde63e0 commit 5a721ff
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@ jobs:
path: .
build_args: STATIC_URL=https://large.nush.app

- name: Check if static files changed
uses: dorny/paths-filter@v2
id: filter
with:
filters: |
static:
- 'static-large/**'
- name: Push large static files image to AppVenture registry
uses: docker/build-push-action@v1
if: steps.filter.outputs.static == 'true'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down

0 comments on commit 5a721ff

Please sign in to comment.