maintenance stage on tags and manual maintenance
This commit is contained in:
parent
fcce0af5b2
commit
3f83369a77
1 changed files with 16 additions and 0 deletions
|
@ -119,6 +119,7 @@ maintenance-mode:
|
|||
before_script:
|
||||
- *ssh_default
|
||||
only:
|
||||
- tags
|
||||
- main
|
||||
script:
|
||||
- echo "Stopping screen session"
|
||||
|
@ -157,3 +158,18 @@ redeploy-staging:
|
|||
- echo "Restarting screen session"
|
||||
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -S staging-firq-npx -dm npx serve staging/ -p 9100 -c serve.json"
|
||||
- echo "Staging environment is up!"
|
||||
|
||||
maintenance-deploy:
|
||||
stage: scripts
|
||||
when: manual
|
||||
only:
|
||||
- main
|
||||
- tags
|
||||
before_script:
|
||||
- *ssh_default
|
||||
script:
|
||||
- echo "Stopping screen session"
|
||||
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-firq-npx kill;" || true
|
||||
- echo "Enabeling maintenance mode"
|
||||
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -S website-firq-npx -dm npx serve maintenance/ -p 9000 -c serve.json"
|
||||
- echo "Maintenance Website is up on https://firq.dev/"
|
||||
|
|
Loading…
Reference in a new issue