This commit is contained in:
parent
5d60bc1e1e
commit
58769bb898
53
.drone.yml
53
.drone.yml
@ -4,26 +4,6 @@ type: docker
|
||||
name: CD
|
||||
|
||||
steps:
|
||||
- name: restore cache node
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: config-node
|
||||
path: /cache/config/node
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- /drone/src/node_modules
|
||||
|
||||
- name: restore cache emacs
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: config-emacs
|
||||
path: /cache/config/emacs
|
||||
settings:
|
||||
restore: true
|
||||
mount:
|
||||
- /root/.emacs.d
|
||||
|
||||
- name: generate emacs
|
||||
image: silex/emacs:master-alpine
|
||||
commands:
|
||||
@ -32,8 +12,6 @@ steps:
|
||||
- pwd && ls -ahl
|
||||
- find / -name '*.org'
|
||||
- find / -name '*.md'
|
||||
depends_on:
|
||||
- "restore cache emacs"
|
||||
|
||||
- name: generate node
|
||||
image: node:19-alpine
|
||||
@ -41,33 +19,6 @@ steps:
|
||||
- yarn --frozen-lockfile
|
||||
- yarn docs:build
|
||||
- pwd && ls -ahl
|
||||
depends_on:
|
||||
- "restore cache node"
|
||||
- "generate emacs"
|
||||
|
||||
- name: rebuild cache emacs
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: config-emacs
|
||||
path: /cache/config/emacs
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- /root/.emacs.d
|
||||
depends_on:
|
||||
- "generate emacs"
|
||||
|
||||
- name: rebuild cache node
|
||||
image: drillster/drone-volume-cache
|
||||
volumes:
|
||||
- name: config-node
|
||||
path: /cache/config/node
|
||||
settings:
|
||||
rebuild: true
|
||||
mount:
|
||||
- /drone/src/node_modules
|
||||
depends_on:
|
||||
- "generate node"
|
||||
|
||||
- name: deploy
|
||||
image: appleboy/drone-scp
|
||||
@ -84,8 +35,6 @@ steps:
|
||||
from_secret: ssh_password
|
||||
port:
|
||||
from_secret: ssh_port
|
||||
depends_on:
|
||||
- "generate node"
|
||||
when:
|
||||
branch:
|
||||
- main
|
||||
@ -103,8 +52,6 @@ steps:
|
||||
action: purge_files
|
||||
list:
|
||||
- https://config.phundrak.com
|
||||
depends_on:
|
||||
- "deploy"
|
||||
when:
|
||||
branch:
|
||||
- devel
|
||||
|
Loading…
Reference in New Issue
Block a user