From 2da6bc8fdc89585a218be37fd7fab393711b873e Mon Sep 17 00:00:00 2001 From: Ming Di Leom <2809763-curben@users.noreply.gitlab.com> Date: Fri, 12 Mar 2021 23:53:19 +0000 Subject: [PATCH] ci: deploy to web server 3 (dry-run) --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 27eae18..d622087 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,6 +21,8 @@ test: - chmod 600 ~/.ssh/id_host_1 - echo "$SSH_KEY_2" > ~/.ssh/id_host_2 - chmod 600 ~/.ssh/id_host_2 + - echo "$SSH_KEY_3" > ~/.ssh/id_host_3 + - chmod 600 ~/.ssh/id_host_3 - echo "$SSH_CONFIG" > ~/.ssh/config - chmod 600 ~/.ssh/config - npm install @@ -32,6 +34,7 @@ test: after_script: - rsync -azvh --delete public/ host-1:/var/www/ - rsync -azvh --delete public/ host-2:/var/www/ + - rsync -azvh --delete --dry-run public/ host-3:/var/www/ rules: # Only trigger through push & "Run pipeline" events in master branch; Skip in renovate job