blog/.woodpecker.yml
Michael Zhang 7375f9c81b
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
agda building!
2024-06-26 19:17:01 -05:00

24 lines
805 B
YAML

steps:
build:
image: git.mzhang.io/michael/blog-docker-builder:ksi5l9c786i4x6sq2crsjqlmcfidvvza
environment:
- ASTRO_TELEMETRY_DISABLED=1
commands:
- mkdir /tmp
- bun install --frozen-lockfile
- bun run build
when:
- event: push
deploy:
image: git.mzhang.io/michael/blog-docker-builder:ksi5l9c786i4x6sq2crsjqlmcfidvvza
commands:
- echo "$${SSH_SECRET_KEY}" > SSH_SECRET_KEY
- chmod 600 SSH_SECRET_KEY
- mkdir -p ~/.ssh
- echo "mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO+RKFYjD8UjqhfOHFHNyijkbGzC4fJEIIhrBwHj+FsQ" >> ~/.ssh/known_hosts
- rsync -azrP -e "ssh -i SSH_SECRET_KEY" dist/ blogDeploy@mzhang.io:/home/blogDeploy/public
secrets: [SSH_SECRET_KEY]
when:
- branch: master
event: push