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

This commit is contained in:
Danila Fedorin 2020-04-26 19:57:50 -07:00
parent a441280812
commit 1ff67341a1

View File

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