-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
75 lines (73 loc) · 1.83 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
kind: pipeline
name: deploy to washweb.org
steps:
- name: restore-cache
image: drillster/drone-volume-cache
settings:
restore: true
mount:
- /usr/local/lib/R/site-library
volumes:
- name: cache
path: /cache
- name: lib
path: /usr/local/lib/R/site-library
- name: build quarto site
image: cynkra/quarto-r:1.4.169-4.3.1
commands:
- 'echo "install.packages(\"rmarkdown\")" | r -'
- 'echo "install.packages(\"readr\")" | r -'
- 'echo "install.packages(\"here\")" | r -'
- 'echo "install.packages(\"dplyr\")" | r -'
- 'echo "install.packages(\"knitr\")" | r -'
- 'echo "install.packages(\"stringr\")" | r -'
- quarto render
volumes:
- name: lib
path: /usr/local/lib/R/site-library
- name: deploy to washweb.org
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
settings:
host: washnote.org
port: 222
service: washweb_org_app
source: .
dest: /usr/share/nginx/html/
chdir: _site
deploy_key:
from_secret: drone_ssh_washnote_org
when:
branch:
- main
- name: deploy to dev.washweb.org
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
settings:
host: washnote.org
port: 222
service: dev_washweb_org_app
source: .
dest: /usr/share/nginx/html/
chdir: _site
deploy_key:
from_secret: drone_ssh_washnote_org
when:
branch:
- dev
- name: rebuild-cache
image: drillster/drone-volume-cache
settings:
rebuild: true
mount:
- /usr/local/lib/R/site-library
volumes:
- name: cache
path: /cache
- name: lib
path: /usr/local/lib/R/site-library
volumes:
- name: cache
host:
path: /tmp/drone/cache
- name: lib
temp: {}