Working on drafts and dev versions of the site
parent
ada741a6eb
commit
aa875beb3a
@ -0,0 +1,84 @@
|
||||
kind: pipeline
|
||||
name: blog
|
||||
|
||||
clone:
|
||||
depth: 1
|
||||
|
||||
steps:
|
||||
- name: hugo
|
||||
image: code.ndumas.com/ndumas/hugo
|
||||
commands:
|
||||
- hugo -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: ["*"]
|
||||
branches:
|
||||
- main
|
||||
---
|
||||
kind: pipeline
|
||||
name: dev
|
||||
|
||||
clone:
|
||||
depth: 1
|
||||
|
||||
steps:
|
||||
- name: hugo
|
||||
image: code.ndumas.com/ndumas/hugo
|
||||
commands:
|
||||
- hugo -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: ["*"]
|
||||
branches:
|
||||
- dev
|
||||
---
|
||||
kind: pipeline
|
||||
name: drafts
|
||||
|
||||
clone:
|
||||
depth: 1
|
||||
|
||||
steps:
|
||||
- name: hugo
|
||||
image: code.ndumas.com/ndumas/hugo
|
||||
commands:
|
||||
- hugo -DF -d /drone/src/public/ --baseUrl https://drafts.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/drone.blog.ndumas.com/
|
||||
include: ["*"]
|
||||
branches:
|
||||
- dev
|
||||
---
|
@ -0,0 +1 @@
|
||||
<script defer data-domain="{{ index .Site.Params urls.AbsURL}}" src="https://analytics.ndumas.com/js/script.js"></script>
|
Loading…
Reference in New Issue