This commit is contained in:
parent
1cee8443b5
commit
411665061d
1 changed files with 0 additions and 79 deletions
79
.drone.yml
79
.drone.yml
|
@ -17,82 +17,3 @@ steps:
|
|||
- ls docs
|
||||
depends_on:
|
||||
- build
|
||||
- name: rebuild-cache
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- ./docs/html
|
||||
depends_on:
|
||||
- docs
|
||||
|
||||
volumes:
|
||||
- name: cache
|
||||
host:
|
||||
path: /tmp/cache
|
||||
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: deploy-docs
|
||||
|
||||
steps:
|
||||
- name: restore-cache
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- ./docs/html
|
||||
- name: prepare-pages
|
||||
image: bitnami/git
|
||||
volumes:
|
||||
- name: cache
|
||||
path: /cache
|
||||
- name: pages
|
||||
path: /tmp/pages
|
||||
commands:
|
||||
- git clone --depth 1 --branch pages https://git.dergrimm.net/dergrimm/hydroforth.git /tmp/pages_old
|
||||
- cp -r /tmp/pages_old/.git /tmp/pages
|
||||
- cp -r ./docs/html /tmp/pages
|
||||
- ls -la /tmp/pages
|
||||
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
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
- promote
|
||||
|
|
Loading…
Reference in a new issue