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