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 21:18:42 +01:00
parent 077bd3242b
commit d02fa8f186

View file

@ -145,60 +145,37 @@ steps:
mount:
- ./docs/book
- ./docker/backend/docs
- name: prepare-docs
- name: prepare-pages
image: alpine
volumes:
- name: cache
path: /cache
- name: docs
path: /tmp/docs
commands:
- cp -r ./docs/book/* /tmp/docs
- mkdir -p /tmp/docs/_api/backend
- cp -r ./docker/backend/docs/* /tmp/docs/_api/backend
depends_on:
- restore-cache
- name: deploy-docs
image: bitnami/git
volumes:
- name: docs
path: /tmp/docs
commands:
- git checkout pages
- ls -a
- rm -rf ./docs
- rm -rf ./*
- 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
- restore-cache
- name: deploy-pages
image: appleboy/drone-git-push
settings:
branch: pages
remote: https://git.dergrimm.net/mentorenwahl/mentorenwahl.git
force: false
commit: true
depends_on:
- prepare-pages
volumes:
- name: cache
host:
path: /tmp/cache
- name: docs
temp: {}
depends_on:
- default