Skip to content

Commit

Permalink
chore: deploy on create of new release from master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ciatph committed Sep 29, 2024
1 parent 72ed267 commit 0c9a29d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
lint-client:
name: Lint and Build client
if: github.event.release.target_commitish == 'master'
runs-on: ubuntu-latest
env:
REACT_APP_BASE_URL: ${{ secrets.REACT_APP_BASE_URL }}
Expand Down Expand Up @@ -46,6 +47,7 @@ jobs:

lint-server:
name: Lint Server
if: github.event.release.target_commitish == 'master'
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -67,6 +69,7 @@ jobs:
deploy-client:
name: Deploy Client to Firebase Hosting
if: github.event.release.target_commitish == 'master'
needs: lint-client
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -111,6 +114,7 @@ jobs:
# Push the complete "app" Docker image
docker-build-push:
name: Deploy App to Docker Hub
if: github.event.release.target_commitish == 'master'
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
Expand Down Expand Up @@ -138,6 +142,7 @@ jobs:
# Push the development (client/server) Docker images
docker-build-push-dev:
name: Deploy Development to Docker Hub
if: github.event.release.target_commitish == 'master'
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
Expand Down

0 comments on commit 0c9a29d

Please sign in to comment.