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
@ -3,14 +3,12 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: build and publish
|
name: build and publish
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: build
|
|
||||||
image: registry.42069.no/build/hugo
|
image: registry.42069.no/build/hugo
|
||||||
environment:
|
environment:
|
||||||
KEY:
|
KEY:
|
||||||
from_secret: key
|
from_secret: key
|
||||||
commands:
|
commands:
|
||||||
- echo "$KEY" > ~/.ssh/id_rsa
|
- mkdir ~/.ssh && echo "$KEY" > ~/.ssh/id_rsa && chmod 600 -R ~/.ssh
|
||||||
- hugo -e prod --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetricsHints
|
- hugo -e prod --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetricsHints
|
||||||
- git clone --branch gh-pages git@github.com:Ghost-Zephyr/Ghost-Zephyr.github.io.git github
|
- git clone --branch gh-pages git@github.com:Ghost-Zephyr/Ghost-Zephyr.github.io.git github
|
||||||
- cp -r public/* github/
|
- cp -r public/* github/
|
||||||
|
Loading…
Reference in New Issue
Block a user