This commit is contained in:
parent
5217ce85a3
commit
59fad6234f
22
.drone.yml
22
.drone.yml
@ -3,16 +3,18 @@ kind: pipeline
|
||||
type: docker
|
||||
name: build and publish
|
||||
|
||||
image: registry.42069.no/build/hugo
|
||||
environment:
|
||||
KEY:
|
||||
from_secret: key
|
||||
commands:
|
||||
- mkdir ~/.ssh && echo "$KEY" > ~/.ssh/id_rsa && chmod 600 -R ~/.ssh
|
||||
- hugo -e prod --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetricsHints
|
||||
- git clone --branch gh-pages git@github.com:Ghost-Zephyr/Ghost-Zephyr.github.io.git github
|
||||
- cp -r public/* github/
|
||||
- cd github/ && git add -A && git commit -m 'Drone CI!~'
|
||||
steps:
|
||||
- name: build and publish
|
||||
image: registry.42069.no/build/hugo
|
||||
environment:
|
||||
KEY:
|
||||
from_secret: key
|
||||
commands:
|
||||
- mkdir ~/.ssh && echo "$KEY" > ~/.ssh/id_rsa && chmod 600 -R ~/.ssh
|
||||
- hugo -e prod --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetricsHints
|
||||
- git clone --branch gh-pages git@github.com:Ghost-Zephyr/Ghost-Zephyr.github.io.git github
|
||||
- cp -r public/* github/
|
||||
- cd github/ && git add -A && git commit -m 'Drone CI!~'
|
||||
|
||||
image_pull_secrets:
|
||||
- registry
|
||||
|
Loading…
x
Reference in New Issue
Block a user