got help me
continuous-integration/drone/push Build encountered an error Details

drafts
Nick Dumas 5 months ago
parent 2a87efc54d
commit 2a7fd0f965

@ -6,72 +6,30 @@ clone:
depth: 1 depth: 1
steps: steps:
- name: hugo - name: hugo_prod
image: code.ndumas.com/ndumas/hugo image: code.ndumas.com/ndumas/hugo
commands: commands:
- hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com - hugo --enableGitInfo -d /drone/src/public/ --baseURL https://blog.ndumas.com
- name: publish
depends_on:
- hugo
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/blog.ndumas.com/
include: ["*"]
when: when:
branch: branch:
include: include:
- main - main
--- - name: hugo_dev
kind: pipeline
name: dev
type: docker
clone:
depth: 1
steps:
- name: hugo
image: code.ndumas.com/ndumas/hugo image: code.ndumas.com/ndumas/hugo
commands: commands:
- hugo --enableGitInfo -d /drone/src/public/ --baseURL https://dev.blog.ndumas.com - hugo --enableGitInfo -d /drone/src/public/ --baseURL https://dev.blog.ndumas.com
- name: publish
depends_on:
- hugo
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: when:
branch: branch:
include: include:
- dev - dev
--- - name: hugo_drafts
kind: pipeline
name: drafts
type: docker
clone:
depth: 1
steps:
- name: hugo
image: code.ndumas.com/ndumas/hugo image: code.ndumas.com/ndumas/hugo
commands: commands:
- hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com - hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com
when:
branch:
include:
- drafts
- name: publish - name: publish
depends_on: depends_on:
- hugo - hugo
@ -84,9 +42,5 @@ steps:
recursive: true recursive: true
hosts: ["blog.ndumas.com"] hosts: ["blog.ndumas.com"]
source: /drone/src/public/ source: /drone/src/public/
target: /var/www/drafts.blog.ndumas.com/ target: /var/www/blog.ndumas.com/
include: ["*"] include: ["*"]
when:
branch:
include:
- drafts

Loading…
Cancel
Save