cicd: restricted permission on key

This commit is contained in:
plup 2019-11-20 22:05:53 +01:00
parent 334b3a7cda
commit 7faeafd21d

View File

@ -9,6 +9,7 @@ deploy_staging:
script:
- echo $APP_CONFIG > config.json
- echo $SSH_PRIVATE_KEY > gitlab.key
- chmod 600 gitlab.key
- npm install
- npm run build
- scp -i gitlab.key -o StrictHostKeyChecking=no -r build/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/