CI staging env?

This commit is contained in:
Firq 2023-07-07 14:17:25 +02:00
parent 808abf8230
commit f598378bff
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
3 changed files with 2239 additions and 1447 deletions

View file

@ -37,10 +37,6 @@ build-site:
cache:
paths:
- node_modules/
only:
- tags
except:
- branches
script:
- npm install
- 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"
- 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:
stage: post_deploy
before_script:

3661
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -12,7 +12,7 @@
},
"dependencies": {
"@astrojs/sitemap": "^1.2.1",
"astro": "^2.1.3",
"astro": "^2.8.0",
"iconoir": "^6.1.0"
}
}