Add .gitlab-ci.yml

This commit is contained in:
Mathieu Lagace
2018-09-24 13:12:47 +00:00
parent d5c6a534b5
commit 863a701e08

24
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,24 @@
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 . username@host.com:/var/www/html
deploy_production:
stage: deploy
environment: Production
only:
- tags
script:
- sshpass -V
- export SSHPASS=$USER_PASS
- sshpass -e scp -o stricthostkeychecking=no -r . username@host.com:/var/www/html
view raw
.gitlab-ci.yml hosted with ❤ by GitHub