From 863a701e084e41ee578ef0cdd07365218a452a3d Mon Sep 17 00:00:00 2001 From: Mathieu Lagace Date: Mon, 24 Sep 2018 13:12:47 +0000 Subject: [PATCH] Add .gitlab-ci.yml --- .gitlab-ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..89cdc025 --- /dev/null +++ b/.gitlab-ci.yml @@ -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