From 12213d9505eccc3d5445bb63a5372d69121781da Mon Sep 17 00:00:00 2001 From: Jack Goh Date: Tue, 7 Aug 2018 18:26:41 +0800 Subject: [PATCH] update cd scripts for commit merge --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index df02450b..f0a73414 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -27,7 +27,7 @@ staging: - chmod 400 ~/.ssh/id_rsa - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' script: - - ssh izyim@40.76.84.105 "cd exchange && git pull origin master && sudo docker-compose -f docker-prod.yml up -d" + - ssh izyim@40.76.84.105 "cd exchange && git pull origin master && git add . && git commit -am "merge staging" && sudo docker-compose -f docker-prod.yml build && sudo docker-compose -f docker-prod.yml up -d" environment: name: staging url: https://exchange-staging.izyim.com/