cicd: fix devdeps installation
This commit is contained in:
parent
9df738a15f
commit
4a24181026
@ -58,10 +58,11 @@ test1:
|
|||||||
environment:
|
environment:
|
||||||
name: test1
|
name: test1
|
||||||
url: https://test1.startinblox.com
|
url: https://test1.startinblox.com
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST1" > config.json
|
- echo "$APP_CONFIG_TEST2" > 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 install
|
|
||||||
- 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/
|
||||||
only:
|
only:
|
||||||
@ -75,10 +76,11 @@ test2:
|
|||||||
environment:
|
environment:
|
||||||
name: test2
|
name: test2
|
||||||
url: https://test2.startinblox.com
|
url: https://test2.startinblox.com
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST2" > config.json
|
- echo "$APP_CONFIG_TEST2" > 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 install
|
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test2@astral.startinblox.com:~/front/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test2@astral.startinblox.com:~/front/
|
||||||
only:
|
only:
|
||||||
@ -92,10 +94,11 @@ test3:
|
|||||||
environment:
|
environment:
|
||||||
name: test3
|
name: test3
|
||||||
url: https://test3.startinblox.com
|
url: https://test3.startinblox.com
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TEST3" > config.json
|
- echo "$APP_CONFIG_TEST2" > 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 install
|
|
||||||
- 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/
|
||||||
only:
|
only:
|
||||||
@ -109,10 +112,11 @@ stg1:
|
|||||||
environment:
|
environment:
|
||||||
name: stg1
|
name: stg1
|
||||||
url: https://stg1.startinblox.com
|
url: https://stg1.startinblox.com
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_STG1" > config.json
|
- echo "$APP_CONFIG_TEST2" > 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 install
|
|
||||||
- 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/
|
||||||
only:
|
only:
|
||||||
@ -126,10 +130,11 @@ stg2:
|
|||||||
environment:
|
environment:
|
||||||
name: stg2
|
name: stg2
|
||||||
url: https://stg2.startinblox.com
|
url: https://stg2.startinblox.com
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_STG2" > config.json
|
- echo "$APP_CONFIG_TEST2" > 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 install
|
|
||||||
- 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/
|
||||||
only:
|
only:
|
||||||
@ -157,10 +162,11 @@ community:
|
|||||||
environment:
|
environment:
|
||||||
name: community
|
name: community
|
||||||
url: https://community.startinblox.com
|
url: https://community.startinblox.com
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_COMMUNITY" > config.json
|
- echo "$APP_CONFIG_TEST2" > 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 install
|
|
||||||
- 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/
|
||||||
only:
|
only:
|
||||||
@ -174,10 +180,11 @@ etuc:
|
|||||||
environment:
|
environment:
|
||||||
name: etuc
|
name: etuc
|
||||||
url: https://app.digitalplatformobservatory.org
|
url: https://app.digitalplatformobservatory.org
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_DIGITALPLATFORMOBSERVATORY" > config.json
|
- echo "$APP_CONFIG_TEST2" > 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 install
|
|
||||||
- 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/
|
||||||
only:
|
only:
|
||||||
@ -191,10 +198,11 @@ nantes:
|
|||||||
environment:
|
environment:
|
||||||
name: nantes
|
name: nantes
|
||||||
url: https://app.nantes.happy-dev.fr
|
url: https://app.nantes.happy-dev.fr
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_NANTESHD" > config.json
|
- echo "$APP_CONFIG_TEST2" > 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 install
|
|
||||||
- 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/
|
||||||
only:
|
only:
|
||||||
@ -208,10 +216,11 @@ paris:
|
|||||||
environment:
|
environment:
|
||||||
name: paris
|
name: paris
|
||||||
url: https://app.paris.happy-dev.fr
|
url: https://app.paris.happy-dev.fr
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_PARIS" > config.json
|
- echo "$APP_CONFIG_TEST2" > 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 install
|
|
||||||
- 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/
|
||||||
only:
|
only:
|
||||||
@ -225,10 +234,11 @@ toulouse:
|
|||||||
environment:
|
environment:
|
||||||
name: toulouse
|
name: toulouse
|
||||||
url: https://smart-toulouse.happy-dev.fr
|
url: https://smart-toulouse.happy-dev.fr
|
||||||
|
before_script:
|
||||||
|
- npm ci --cache .npm --prefer-offline --only=production
|
||||||
script:
|
script:
|
||||||
- echo "$APP_CONFIG_TOULOUSE" > config.json
|
- echo "$APP_CONFIG_TEST2" > 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 install
|
|
||||||
- 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/
|
||||||
only:
|
only:
|
||||||
|
Loading…
Reference in New Issue
Block a user