Merge branch 'main' into drafts
continuous-integration/drone/push Build is passing Details

drafts
Nick Dumas 5 months ago
commit 062c301a95

@ -30,7 +30,9 @@ steps:
branch: branch:
include: include:
- drafts - drafts
- name: publish - name: publish_prod
depends_on:
- hugo_prod
image: drillster/drone-rsync image: drillster/drone-rsync
settings: settings:
key: key:
@ -42,3 +44,43 @@ steps:
source: /drone/src/public/ source: /drone/src/public/
target: /var/www/blog.ndumas.com/ target: /var/www/blog.ndumas.com/
include: ["*"] include: ["*"]
when:
branch:
include:
- main
- name: publish_dev
depends_on:
- hugo_dev
image: drillster/drone-rsync
settings:
key:
from_secret: BLOG_DEPLOY_KEY
user: blog
delete: true
recursive: true
hosts: ["blog.ndumas.com"]
source: /drone/src/public/
target: /var/www/dev.blog.ndumas.com/
include: ["*"]
when:
branch:
include:
- dev
- name: publish_drafts
depends_on:
- hugo_drafts
image: drillster/drone-rsync
settings:
key:
from_secret: BLOG_DEPLOY_KEY
user: blog
delete: true
recursive: true
hosts: ["blog.ndumas.com"]
source: /drone/src/public/
target: /var/www/drafts.blog.ndumas.com/
include: ["*"]
when:
branch:
include:
- drafts

Loading…
Cancel
Save