CI staging env?
This commit is contained in:
parent
808abf8230
commit
f598378bff
3 changed files with 2239 additions and 1447 deletions
|
@ -37,10 +37,6 @@ build-site:
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- node_modules/
|
- node_modules/
|
||||||
only:
|
|
||||||
- tags
|
|
||||||
except:
|
|
||||||
- branches
|
|
||||||
script:
|
script:
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
|
@ -71,6 +67,25 @@ deploy-site:
|
||||||
- ssh $DEPLOY_USER@$DEPLOY_HOST "find maintenance public -maxdepth 1 -printf '%p\n'; screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json"
|
- ssh $DEPLOY_USER@$DEPLOY_HOST "find maintenance public -maxdepth 1 -printf '%p\n'; screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json"
|
||||||
- echo "Website is up on https://firq.dev/"
|
- echo "Website is up on https://firq.dev/"
|
||||||
|
|
||||||
|
deploy-testing:
|
||||||
|
stage: deploy
|
||||||
|
when: on_success
|
||||||
|
except:
|
||||||
|
- tags
|
||||||
|
- main
|
||||||
|
before_script:
|
||||||
|
- *ssh_default
|
||||||
|
script:
|
||||||
|
- echo "Getting artifacts"
|
||||||
|
- ls public
|
||||||
|
- echo "Stopping screen session, cleaning"
|
||||||
|
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S staging-firq-npx kill; rm -r -f staging/*;"
|
||||||
|
- echo "Copying to proxmox machine"
|
||||||
|
- rsync -az --stats public/* $DEPLOY_USER@$DEPLOY_HOST:~/staging
|
||||||
|
- echo "Restarting screen session"
|
||||||
|
- ssh $DEPLOY_USER@$DEPLOY_HOST "find staging -maxdepth 1 -printf '%p\n'; screen -S staging-firq-npx -dm npx serve staging/ -p 9100 -c serve.json"
|
||||||
|
- echo "Staging environment is up!"
|
||||||
|
|
||||||
success_notification:
|
success_notification:
|
||||||
stage: post_deploy
|
stage: post_deploy
|
||||||
before_script:
|
before_script:
|
||||||
|
|
3661
package-lock.json
generated
3661
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -12,7 +12,7 @@
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/sitemap": "^1.2.1",
|
"@astrojs/sitemap": "^1.2.1",
|
||||||
"astro": "^2.1.3",
|
"astro": "^2.8.0",
|
||||||
"iconoir": "^6.1.0"
|
"iconoir": "^6.1.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue