cicd: deployment variables
This commit is contained in:
parent
4a24181026
commit
8381cfb5a3
@ -61,7 +61,7 @@ test1:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST2" > config.json
|
- echo "$APP_CONFIG_TEST1" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test1@astral.startinblox.com:~/front/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test1@astral.startinblox.com:~/front/
|
||||||
@ -97,7 +97,7 @@ test3:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST2" > config.json
|
- echo "$APP_CONFIG_TEST3" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test3@astral.startinblox.com:~/front/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test3@astral.startinblox.com:~/front/
|
||||||
@ -115,7 +115,7 @@ stg1:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST2" > config.json
|
- echo "$APP_CONFIG_STG1" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* stg1@astral.startinblox.com:~/front/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* stg1@astral.startinblox.com:~/front/
|
||||||
@ -133,7 +133,7 @@ stg2:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST2" > config.json
|
- echo "$APP_CONFIG_STG2" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* stg2@astral.startinblox.com:~/front/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* stg2@astral.startinblox.com:~/front/
|
||||||
@ -165,7 +165,7 @@ community:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST2" > config.json
|
- echo "$APP_CONFIG_COMMUNITY" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* community@astral.startinblox.com:~/front/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* community@astral.startinblox.com:~/front/
|
||||||
@ -183,7 +183,7 @@ etuc:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST2" > config.json
|
- echo "$APP_CONFIG_DIGITALPLATFORMOBSERVATORY" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* etuc@ssh-etuc.happy-dev.fr:~/sib/www/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* etuc@ssh-etuc.happy-dev.fr:~/sib/www/
|
||||||
@ -201,7 +201,7 @@ nantes:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST2" > config.json
|
- echo "$APP_CONFIG_NANTESHD" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* nantes@ssh-nantes.happy-dev.fr:~/sib/www/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* nantes@ssh-nantes.happy-dev.fr:~/sib/www/
|
||||||
@ -219,7 +219,7 @@ paris:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST2" > config.json
|
- echo "$APP_CONFIG_PARIS" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* paris@ssh-paris.happy-dev.fr:~/sib/www/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* paris@ssh-paris.happy-dev.fr:~/sib/www/
|
||||||
@ -237,7 +237,7 @@ toulouse:
|
|||||||
before_script:
|
before_script:
|
||||||
- npm ci --cache .npm --prefer-offline --only=production
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST2" > config.json
|
- echo "$APP_CONFIG_TOULOUSE" > config.json
|
||||||
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* smart-toulouse@ssh-smart-toulouse.happy-dev.fr:~/www/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* smart-toulouse@ssh-smart-toulouse.happy-dev.fr:~/www/
|
||||||
|
Loading…
Reference in New Issue
Block a user