Update deploy pipeline
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
continuous-integration/drone Build is failing

This commit is contained in:
Dominic Grimm 2022-02-20 20:44:58 +01:00
parent 7ad5e8bb5d
commit 077bd3242b

View file

@ -159,24 +159,40 @@ steps:
depends_on:
- restore-cache
- name: deploy-docs
image: appleboy/drone-scp
image: bitnami/git
volumes:
- name: docs
path: /tmp/docs
settings:
host:
from_secret: docs_deploy_ssh_host
user:
from_secret: docs_deploy_ssh_user
password:
from_secret: docs_deploy_ssh_password
target: /mnt/web/docs
source:
- /tmp/docs/*
rm: true
commands:
- git checkout pages
- ls -a
- rm -rf ./docs
- mkdir ./docs
- cp -r /tmp/docs ./docs
- ls -a
- ls -a ./docs
depends_on:
- prepare-docs
# - name: deploy-docs
# image: appleboy/drone-scp
# volumes:
# - name: docs
# path: /tmp/docs
# settings:
# host:
# from_secret: docs_deploy_ssh_host
# user:
# from_secret: docs_deploy_ssh_user
# password:
# from_secret: docs_deploy_ssh_password
# target: /mnt/web/docs
# source:
# - /tmp/docs/*
# rm: true
# depends_on:
# - prepare-docs
volumes:
- name: cache
host: