This commit is contained in:
parent
b0188f6c9e
commit
cfb914149d
1 changed files with 1 additions and 4 deletions
|
@ -2,16 +2,13 @@ pipeline:
|
||||||
build:
|
build:
|
||||||
image: klakegg/hugo:ext-pandoc-ci
|
image: klakegg/hugo:ext-pandoc-ci
|
||||||
commands:
|
commands:
|
||||||
- ls -al
|
|
||||||
- pwd
|
|
||||||
- hugo --minify --baseURL https://mzhang.io
|
- hugo --minify --baseURL https://mzhang.io
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- ls -al
|
|
||||||
- pwd
|
|
||||||
- echo "$SSH_SECRET_KEY" > SSH_SECRET_KEY
|
- echo "$SSH_SECRET_KEY" > SSH_SECRET_KEY
|
||||||
|
- mkdir -p ~/.ssh
|
||||||
- echo "mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzBZ+QmM4EO3Fwc1ZcvWV2IY9VF04T0H9brorGj9Udp" >> ~/.ssh/known_hosts
|
- echo "mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzBZ+QmM4EO3Fwc1ZcvWV2IY9VF04T0H9brorGj9Udp" >> ~/.ssh/known_hosts
|
||||||
- rsync -azvrP -e "ssh -i SSH_SECRET_KEY" public/ sourcehutBuilds@mzhang.io:/mnt/storage/svcdata/blog-public
|
- rsync -azvrP -e "ssh -i SSH_SECRET_KEY" public/ sourcehutBuilds@mzhang.io:/mnt/storage/svcdata/blog-public
|
||||||
when:
|
when:
|
||||||
|
|
Loading…
Reference in a new issue