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:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
path: /cache
|
path: /cache
|
||||||
- name: pages
|
|
||||||
path: /tmp/pages
|
|
||||||
commands:
|
commands:
|
||||||
# - git clone --depth 1 --branch pages https://git.dergrimm.net/mentorenwahl/mentorenwahl.git /tmp/pages_old
|
# - git clone --depth 1 --branch pages https://git.dergrimm.net/mentorenwahl/mentorenwahl.git /tmp/pages_old
|
||||||
# - cp -r /tmp/pages_old/.git /tmp/pages
|
# - cp -r /tmp/pages_old/.git /tmp/pages
|
||||||
|
@ -63,15 +61,32 @@ steps:
|
||||||
# - mkdir -p /tmp/pages/_api/backend
|
# - mkdir -p /tmp/pages/_api/backend
|
||||||
# - cp -r ./backend/docs/* /tmp/pages/_api/backend
|
# - cp -r ./backend/docs/* /tmp/pages/_api/backend
|
||||||
- ls -la
|
- ls -la
|
||||||
|
- git checkout pages
|
||||||
|
- shopt -s extglob; rm -rf !(.git)
|
||||||
|
- ls -la
|
||||||
depends_on:
|
depends_on:
|
||||||
- restore-cache
|
- 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:
|
volumes:
|
||||||
- name: cache
|
- name: cache
|
||||||
host:
|
host:
|
||||||
path: /tmp/cache
|
path: /tmp/cache
|
||||||
- name: pages
|
|
||||||
temp: {}
|
|
||||||
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- default
|
- default
|
||||||
|
|
Loading…
Reference in a new issue