update staging deploy config

This commit is contained in:
Jack Goh
2018-08-02 14:43:07 +08:00
parent 3339ebe1ce
commit 49308fc5f3
+2 -3
View File
@@ -23,13 +23,12 @@ staging:
stage: staging
before_script:
- mkdir -p ~/.ssh
- echo -e "$DEV_SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- echo -e "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
- sudo mv ~/.ssh/known_hosts ~/.ssh/known_hosts_backup
- chmod 600 ~/.ssh/id_rsa
- '[[ ! -e /.dockerenv ]] && exit 0'
script:
- ssh jack@$DEMO_SERVER "git pull origin master && cd docker && docker-compose exec workspace composer install && docker-compose exec workspace php artisan migrate"
- ssh izyim@40.76.84.105 "git pull origin master && sudo docker-compose -f docker-prod.yml up -d"
environment:
name: staging
url: https://demo.12eat.cheap
when: manual