mirror of
https://gitlab.com/TheGamecraft/c-cms.git
synced 2026-04-21 02:39:10 -04:00
Add .gitlab-ci.yml
This commit is contained in:
24
.gitlab-ci.yml
Normal file
24
.gitlab-ci.yml
Normal 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
|
||||
Reference in New Issue
Block a user