Disable live uploading while the new server doesn't accept the files.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
a441280812
commit
1ff67341a1
28
.drone.yml
28
.drone.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user