washweb-website/.drone.yml

47 lines
1.1 KiB
YAML
Raw Normal View History

2023-06-28 10:28:00 +00:00
---
2023-06-28 10:26:39 +00:00
kind: pipeline
name: deploy to washweb.org
2023-06-28 10:26:39 +00:00
steps:
- name: build quarto site
image: cynkra/quarto-r:1.4.169-4.3.1
commands:
2023-07-25 14:36:04 +00:00
- 'echo "install.packages(\"rmarkdown\")" | r -'
2023-06-28 10:32:39 +00:00
- quarto render
2023-06-28 10:26:39 +00:00
- name: deploy to running app instance
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
2023-06-28 10:32:39 +00:00
settings:
host: washnote.org
2023-06-28 10:38:41 +00:00
port: 2222
service: washweb_org
2023-06-28 10:58:50 +00:00
source: .
2023-06-28 10:32:39 +00:00
dest: /usr/share/nginx/html/
2023-06-28 10:58:50 +00:00
chdir: _site
2023-06-28 10:32:39 +00:00
deploy_key:
from_secret: drone_ssh_washnote_org
when:
branch:
- main
---
kind: pipeline
name: deploy to dev.washweb.org
steps:
- name: build quarto site
image: cynkra/quarto-r:1.4.169-4.3.1
commands:
- 'echo "install.packages(\"rmarkdown\")" | r -'
- quarto render
- name: deploy to running app instance
image: git.coopcloud.tech/coop-cloud/docker-cp-deploy:latest
settings:
host: washnote.org
port: 2222
service: dev_washweb_org
source: .
dest: /usr/share/nginx/html/
chdir: _site
deploy_key:
from_secret: drone_ssh_washnote_org
when:
branch:
- dev