Files
c-cms-legacy/.gitlab-ci.yml
2018-09-24 13:20:32 +00:00

23 lines
537 B
YAML

before_script:
- apt-get update -qq && apt-get install -y -qq sshpass
deploy_stage:
stage: deploy
environment: Staging
only:
- master
script:
- sshpass -V
- export SSHPASS=$USER_PASS
- sshpass -e scp -o stricthostkeychecking=no -r . admin@54.39.97.124:/var/www/website/C697
deploy_production:
stage: deploy
environment: Production
only:
- tags
script:
- sshpass -V
- export SSHPASS=$USER_PASS
- sshpass -e scp -o stricthostkeychecking=no -r . admin@54.39.97.124:/var/www/website/C697