This commit is contained in:
parent
b753895119
commit
e3654bda81
1 changed files with 19 additions and 4 deletions
23
.drone.yml
23
.drone.yml
|
@ -54,8 +54,6 @@ steps:
|
|||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
- name: pages
|
||||
path: /tmp/pages
|
||||
commands:
|
||||
# - git clone --depth 1 --branch pages https://git.dergrimm.net/mentorenwahl/mentorenwahl.git /tmp/pages_old
|
||||
# - cp -r /tmp/pages_old/.git /tmp/pages
|
||||
|
@ -63,15 +61,32 @@ steps:
|
|||
# - mkdir -p /tmp/pages/_api/backend
|
||||
# - cp -r ./backend/docs/* /tmp/pages/_api/backend
|
||||
- ls -la
|
||||
- git checkout pages
|
||||
- shopt -s extglob; rm -rf !(.git)
|
||||
- ls -la
|
||||
depends_on:
|
||||
- restore-cache
|
||||
# - name: deploy-pages
|
||||
# image: appleboy/drone-git-push
|
||||
# volumes:
|
||||
# - name: pages
|
||||
# path: /tmp/pages
|
||||
# settings:
|
||||
# remote:
|
||||
# from_secret: deploy_remote
|
||||
# force: false
|
||||
# commit: true
|
||||
# commit_message: "[CI] Deploy pages"
|
||||
# branch: pages
|
||||
# local_ref: pages
|
||||
# path: /tmp/pages
|
||||
# depends_on:
|
||||
# - prepare-pages
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
path: /tmp/cache
|
||||
- name: pages
|
||||
temp: {}
|
||||
|
||||
depends_on:
|
||||
- default
|
||||
|
|
Loading…
Reference in a new issue