Disable live uploading while the new server doesn't accept the files.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danila Fedorin 2020-04-26 19:57:50 -07:00
parent a441280812
commit 1ff67341a1
1 changed files with 14 additions and 14 deletions

View File

@ -22,17 +22,17 @@ steps:
path: /live-output
environment:
HUGO_DESTINATION: /live-output
- name: upload-live
image: eeacms/rsync
commands:
- eval `ssh-agent -s`
- echo "$CUSTOM_KEY" | ssh-add -
- mkdir -p ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- rsync -rv -e "ssh -p 22" /live-output/ blog-live@danilafe.com:/var/www/blog-live/ --checksum
environment:
CUSTOM_KEY:
from_secret: live_ssh_key
volumes:
- name: live-output
path: /live-output
# - name: upload-live
# image: eeacms/rsync
# commands:
# - eval `ssh-agent -s`
# - echo "$CUSTOM_KEY" | ssh-add -
# - mkdir -p ~/.ssh
# - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
# - rsync -rv -e "ssh -p 22" /live-output/ blog-live@danilafe.com:/var/www/blog-live/ --checksum
# environment:
# CUSTOM_KEY:
# from_secret: live_ssh_key
# volumes:
# - name: live-output
# path: /live-output