cicd: restricted permission on key
This commit is contained in:
parent
334b3a7cda
commit
7faeafd21d
@ -9,6 +9,7 @@ deploy_staging:
|
|||||||
script:
|
script:
|
||||||
- echo $APP_CONFIG > config.json
|
- echo $APP_CONFIG > config.json
|
||||||
- echo $SSH_PRIVATE_KEY > gitlab.key
|
- echo $SSH_PRIVATE_KEY > gitlab.key
|
||||||
|
- chmod 600 gitlab.key
|
||||||
- npm install
|
- npm install
|
||||||
- npm run build
|
- npm run build
|
||||||
- scp -i gitlab.key -o StrictHostKeyChecking=no -r build/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/
|
- scp -i gitlab.key -o StrictHostKeyChecking=no -r build/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/
|
||||||
|
Loading…
Reference in New Issue
Block a user