Files
bytegeist-portfolio/.woodpecker.yml
T
Keith Casko 7def1c8410
ci/woodpecker/push/woodpecker Pipeline was successful
Fix SSH host key for Woodpecker deploy
2026-06-21 17:21:46 +00:00

23 lines
601 B
YAML

when:
branch: main
event: push
steps:
deploy:
image: docker:cli
volumes:
- /root/lab/bytegeist-portfolio/site:/live-site
- /var/run/docker.sock:/var/run/docker.sock
- /root/.ssh:/root/.ssh
commands:
- apk add --no-cache git openssh-client
- mkdir -p /root/.ssh
- ssh-keyscan -p 2222 git.casko.dev >> /root/.ssh/known_hosts
- chmod 700 /root/.ssh
- chmod 600 /root/.ssh/id_ed25519
- cd /live-site
- git pull origin main
- docker restart bytegeist-portfolio
- git log -1 --oneline
- echo "Deploy complete"