Skip to content

Commit

Permalink
Merge pull request #234 from entur/maintenance-mode-tst-and-prd
Browse files Browse the repository at this point in the history
Adds maintenance mode workflow for tst, prd
  • Loading branch information
erlendev authored Feb 4, 2025
2 parents 8e7a29f + 2bdee94 commit 49a1c23
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/maintenance_mode_production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Production maintenance mode
on: workflow_dispatch
jobs:
deploy_prod:
runs-on: ubuntu-latest
environment: 'prod'
steps:
- uses: actions/checkout@v4
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
- name: Copy maintenance mode file
run: mkdir build && cp public/maintenance.html build/index.html
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ENT_NINKASI_PRD }}'
channelId: live
projectId: ent-ninkasi-prd
18 changes: 18 additions & 0 deletions .github/workflows/maintenance_mode_staging.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Staging maintenance mode
on: workflow_dispatch
jobs:
deploy_staging:
runs-on: ubuntu-latest
environment: 'staging'
steps:
- uses: actions/checkout@v4
- name: Download all workflow run artifacts
uses: actions/download-artifact@v4
- name: Copy maintenance mode file
run: mkdir build && cp public/maintenance.html build/index.html
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ENT_NINKASI_TST }}'
channelId: live
projectId: ent-ninkasi-tst

0 comments on commit 49a1c23

Please sign in to comment.