diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 119af46..22dfbc2 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -5,6 +5,7 @@ on: push: branches: - "master" + - "dev" - "*-framework" tags: - "v*.*.*" @@ -56,8 +57,8 @@ jobs: name: Demo docker image needs: build runs-on: ubuntu-latest - # Run only when it is a release build - if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v') + # Run only when it is a dev update + if: github.ref == 'refs/heads/dev' steps: - name: Checkout diff --git a/Dockerfile.demo b/Dockerfile.demo index df09ec5..9cc3e77 100644 --- a/Dockerfile.demo +++ b/Dockerfile.demo @@ -1,4 +1,4 @@ -FROM rigon/photo-gallery:latest +FROM rigon/photo-gallery:dev RUN touch /photos/Favorites.PG-ALBUM; \ set -- Nature Film Animals Travel People "Machu Picchu" "The Grand Canyon" "Great Barrier Reef" Maldives Paris Iceland \