This commit is contained in:
parent
b9c29d223f
commit
519d456b84
@ -4,10 +4,16 @@ name: default
|
|||||||
steps:
|
steps:
|
||||||
- name: git-clone
|
- name: git-clone
|
||||||
image: alpine/git
|
image: alpine/git
|
||||||
|
environment:
|
||||||
|
SSH_KEY:
|
||||||
|
from_secret: ssh_key
|
||||||
volumes:
|
volumes:
|
||||||
- name: output
|
- name: output
|
||||||
path: /output
|
path: /output
|
||||||
commands:
|
commands:
|
||||||
|
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa
|
||||||
|
- chmod 600 $HOME/.ssh/known_hosts
|
||||||
|
- ssh-keyscan -H git@git.ericxliu.me > ~/.ssh/known_hosts 2> /dev/null
|
||||||
- git clone --branch gitea-pages git@git.ericxliu.me:eric/ericxliu-me.git /output
|
- git clone --branch gitea-pages git@git.ericxliu.me:eric/ericxliu-me.git /output
|
||||||
- name: build
|
- name: build
|
||||||
image: plugins/hugo
|
image: plugins/hugo
|
||||||
|
Loading…
Reference in New Issue
Block a user