From 9a07fcb951a6074c22c677a747246670390527b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gon=C3=A7alves?= Date: Mon, 23 Dec 2024 01:16:07 +0000 Subject: [PATCH] Build demo only when dev is updated --- .github/workflows/docker-image.yml | 4 ++-- Dockerfile.demo | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index e9a8fe0..9bb104f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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 diff --git a/Dockerfile.demo b/Dockerfile.demo index 7dae771..8805011 100644 --- a/Dockerfile.demo +++ b/Dockerfile.demo @@ -1,3 +1,3 @@ -FROM rigon/photo-gallery:latest +FROM rigon/photo-gallery:dev COPY photos /photos RUN touch /photos/Favorites.PG-ALBUM