Skip to content

Commit

Permalink
Build demo only when dev is updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rigon committed Dec 23, 2024
1 parent ee447ec commit 9a07fcb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:
name: Demo docker image
needs: build
runs-on: ubuntu-latest
# Run only when it is a release build or updates in dev
if: (github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')) || github.ref == 'refs/heads/dev'
# Run only when dev is updated
if: github.ref == 'refs/heads/dev'

steps:
- name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.demo
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
FROM rigon/photo-gallery:latest
FROM rigon/photo-gallery:dev
COPY photos /photos
RUN touch /photos/Favorites.PG-ALBUM

0 comments on commit 9a07fcb

Please sign in to comment.