chore: simplify CI
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Lucien Cartier-Tilet 2023-11-03 20:09:36 +01:00
parent 5d60bc1e1e
commit 58769bb898
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -4,26 +4,6 @@ type: docker
name: CD name: CD
steps: 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 - name: generate emacs
image: silex/emacs:master-alpine image: silex/emacs:master-alpine
commands: commands:
@ -32,8 +12,6 @@ steps:
- pwd && ls -ahl - pwd && ls -ahl
- find / -name '*.org' - find / -name '*.org'
- find / -name '*.md' - find / -name '*.md'
depends_on:
- "restore cache emacs"
- name: generate node - name: generate node
image: node:19-alpine image: node:19-alpine
@ -41,33 +19,6 @@ steps:
- yarn --frozen-lockfile - yarn --frozen-lockfile
- yarn docs:build - yarn docs:build
- pwd && ls -ahl - 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 - name: deploy
image: appleboy/drone-scp image: appleboy/drone-scp
@ -84,8 +35,6 @@ steps:
from_secret: ssh_password from_secret: ssh_password
port: port:
from_secret: ssh_port from_secret: ssh_port
depends_on:
- "generate node"
when: when:
branch: branch:
- main - main
@ -103,8 +52,6 @@ steps:
action: purge_files action: purge_files
list: list:
- https://config.phundrak.com - https://config.phundrak.com
depends_on:
- "deploy"
when: when:
branch: branch:
- devel - devel