Skip to content
Snippets Groups Projects
.gitlab-ci.yml 436 B
image: node

stages:
 - deploy

deploy_staging:
  stage: deploy
  environment: staging
  script:
    - echo "$APP_CONFIG" > config.json
    - echo "$SSH_PRIVATE_KEY" | tr -d '\r' > gitlab.key && chmod 600 gitlab.key
    - npm install
    - npm run build
    - scp -i gitlab.key -o StrictHostKeyChecking=no -r dist/* test-paris@ssh-test-paris.happy-dev.fr:~/staging/www/
  only:
    - feat/manager_deploy
    - staging
  tags:
    - sib