cicd: add apidays
This commit is contained in:
parent
aacfd6d82d
commit
4e9d58452f
@ -534,3 +534,21 @@ lemans:
|
||||
when: manual
|
||||
tags:
|
||||
- deploy
|
||||
|
||||
apidays:
|
||||
stage: deployment
|
||||
environment:
|
||||
name: apidays
|
||||
url: https://apidays.hubl.world
|
||||
before_script:
|
||||
- npm ci --cache .npm --prefer-offline --only=production
|
||||
script:
|
||||
- echo "$APP_CONFIG_APIDAYS" > config.json
|
||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||
- npm run build
|
||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* apidays@astral.startinblox.com:~/front/
|
||||
only:
|
||||
- master
|
||||
when: manual
|
||||
tags:
|
||||
- deploy
|
||||
|
Loading…
Reference in New Issue
Block a user