Okay, this should cover all 3 envs
continuous-integration/drone/push Build is passing Details

drafts
Nick Dumas 5 months ago
parent 4e5c77b66f
commit b90a2b66bd

@ -30,7 +30,9 @@ steps:
branch:
include:
- drafts
- name: publish
- name: publish_prod
depends_on:
- hugo_prod
image: drillster/drone-rsync
settings:
key:
@ -42,3 +44,43 @@ steps:
source: /drone/src/public/
target: /var/www/blog.ndumas.com/
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