From 2a7fd0f96538ac46353b591b17578fb90ea9a33b Mon Sep 17 00:00:00 2001 From: Nick Dumas Date: Tue, 2 Jul 2024 18:44:01 -0400 Subject: [PATCH] got help me --- .drone.yml | 62 +++++++----------------------------------------------- 1 file changed, 8 insertions(+), 54 deletions(-) diff --git a/.drone.yml b/.drone.yml index 94e007b..fff1bef 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,72 +6,30 @@ clone: depth: 1 steps: -- name: hugo +- name: hugo_prod image: code.ndumas.com/ndumas/hugo commands: - 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: branch: include: - main ---- -kind: pipeline -name: dev -type: docker - -clone: - depth: 1 - -steps: -- name: hugo +- name: hugo_dev image: code.ndumas.com/ndumas/hugo commands: - 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: branch: include: - dev ---- -kind: pipeline -name: drafts -type: docker - -clone: - depth: 1 - -steps: -- name: hugo +- name: hugo_drafts image: code.ndumas.com/ndumas/hugo commands: - hugo --enableGitInfo -DF -d /drone/src/public/ --baseURL https://drafts.blog.ndumas.com + when: + branch: + include: + - drafts - name: publish depends_on: - hugo @@ -84,9 +42,5 @@ steps: recursive: true hosts: ["blog.ndumas.com"] source: /drone/src/public/ - target: /var/www/drafts.blog.ndumas.com/ + target: /var/www/blog.ndumas.com/ include: ["*"] - when: - branch: - include: - - drafts