ci: deploy to web server 3 (dry-run)

This commit is contained in:
Ming Di Leom 2021-03-12 23:53:19 +00:00
parent 82a3255b68
commit 2da6bc8fdc
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 3 additions and 0 deletions

View File

@ -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