Files
blog.cybershell.xyz/.woodpecker/deploy.yml
Andrew Woodlee 4da364d38c
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
CI config update
2026-04-01 17:15:33 -05:00

35 lines
1.3 KiB
YAML

steps:
cloneAndBuild:
image: ghcr.io/gohugoio/hugo:v0.159.2
commands:
- git submodule update --init --recursive # needed when you reclone your repo (submodules may not get cloned automatically)
# - git submodule foreach 'git fetch origin; git checkout $(git describe --tags `git rev-list --tags --max-count=1`);'
- hugo
deploy:
image: codingkoopa/git-rsync-openssh
commands:
- echo "nameserver 1.1.1.1" > /etc/resolv.conf
- mkdir ~/.ssh && chmod -R 700 ~/.ssh
# - apt update -y && apt install openssh-client rsync -y
- echo "$SSH_HOST_KEY" > ~/.ssh/known_hosts
- echo -e '#!/bin/sh\necho "$SSH_PASSPHRASE"' | tr -d '\r' > ~/.ssh/.print_ssh_password
# - cat ~/.ssh/.print_ssh_password
- chmod 700 ~/.ssh/.print_ssh_password
- eval $(ssh-agent -s)
- echo "$SSH_DEPLOY_KEY" | tr -d '\r' | DISPLAY=":0.0" SSH_ASKPASS=~/.ssh/.print_ssh_password setsid ssh-add -
- rsync -atv --delete --progress public/ cybershell@blog.cybershell.xyz:/home/cybershell/blog.cybershell.xyz
environment:
SSH_HOST_KEY:
from_secret: ssh_host_key
SSH_DEPLOY_KEY:
from_secret: ssh_deploy_key
SSH_PASSPHRASE:
from_secret: ssh_passphrase
when:
- event: push
branch: master