blog/.woodpecker.yml
Michael Zhang 6468b29dd7
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
minor edits
2023-08-31 22:25:25 -05:00

19 lines
572 B
YAML

pipeline:
build:
image: node:18
commands:
- npm ci
- npm run build
deploy:
image: alpine
commands:
- apk add rsync openssh
- echo "$${SSH_SECRET_KEY}" > SSH_SECRET_KEY
- chmod 600 SSH_SECRET_KEY
- mkdir -p ~/.ssh
- echo "mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzBZ+QmM4EO3Fwc1ZcvWV2IY9VF04T0H9brorGj9Udp" >> ~/.ssh/known_hosts
- rsync -azvrP -e "ssh -i SSH_SECRET_KEY" dist/ sourcehutBuilds@mzhang.io:/mnt/storage/svcdata/blog-public
secrets: [SSH_SECRET_KEY]
when:
branch: master