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