2023-09-18 16:45:14 +00:00
|
|
|
---
|
2020-09-03 08:44:27 +00:00
|
|
|
kind: pipeline
|
2023-09-18 16:45:14 +00:00
|
|
|
type: docker
|
|
|
|
name: CD
|
2020-09-03 08:44:27 +00:00
|
|
|
|
|
|
|
steps:
|
2023-09-18 16:45:14 +00:00
|
|
|
- name: generate emacs
|
|
|
|
image: silex/emacs:master-alpine
|
2020-09-03 08:44:27 +00:00
|
|
|
commands:
|
2023-09-18 16:45:14 +00:00
|
|
|
- apk update && apk add git
|
2021-12-01 15:49:45 +00:00
|
|
|
- emacs -Q --script export.el
|
2023-09-18 16:45:14 +00:00
|
|
|
- pwd && ls -ahl
|
|
|
|
- find / -name '*.org'
|
|
|
|
- find / -name '*.md'
|
|
|
|
|
|
|
|
- name: generate node
|
|
|
|
image: node:19-alpine
|
|
|
|
commands:
|
|
|
|
- yarn --frozen-lockfile
|
|
|
|
- yarn docs:build
|
|
|
|
- pwd && ls -ahl
|
2020-09-03 08:44:27 +00:00
|
|
|
|
|
|
|
- name: deploy
|
|
|
|
image: appleboy/drone-scp
|
|
|
|
settings:
|
|
|
|
host:
|
|
|
|
from_secret: ssh_host
|
|
|
|
target:
|
|
|
|
from_secret: ssh_target
|
2023-09-18 16:45:14 +00:00
|
|
|
source: docs/.vuepress/dist/*
|
|
|
|
strip_components: 3
|
2020-09-03 08:44:27 +00:00
|
|
|
username:
|
|
|
|
from_secret: ssh_username
|
|
|
|
password:
|
|
|
|
from_secret: ssh_password
|
|
|
|
port:
|
|
|
|
from_secret: ssh_port
|
2023-09-18 16:45:14 +00:00
|
|
|
when:
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
- name: purge cache
|
|
|
|
image: jetrails/drone-cloudflare-caching
|
|
|
|
settings:
|
|
|
|
api_token:
|
|
|
|
from_secret: cloudflare_cache_api
|
|
|
|
zone_identifier:
|
|
|
|
from_secret: phundrak_com_zone_id
|
|
|
|
action: purge_files
|
|
|
|
list:
|
|
|
|
- https://config.phundrak.com
|
2020-09-03 10:42:18 +00:00
|
|
|
when:
|
|
|
|
branch:
|
2023-09-18 16:45:14 +00:00
|
|
|
- devel
|
2020-09-03 10:42:18 +00:00
|
|
|
event:
|
|
|
|
exclude:
|
|
|
|
- pull_request
|