From 0dc3e9ced6411c0d651e1203a7cf44757a1dc2b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Gon=C3=A7alves?= Date: Mon, 9 Oct 2023 22:33:01 +0000 Subject: [PATCH] Build for branch dev --- .github/workflows/docker-image.yml | 5 +++-- Dockerfile.demo | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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 \ diff --git a/package.json b/package.json index d204c72..166d4da 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "photo-gallery", "private": true, - "version": "1.5.2", + "version": "1.5.2-dev", "type": "module", "description": "Photo Gallery is a self-hosted performant application to organize your photos. Built for speed with React and Go.", "scripts": {