Draft new post

This commit is contained in:
idanoo 2022-09-12 20:30:55 +12:00
parent fce5cde057
commit cde31666a7
Signed by: idanoo
GPG key ID: 387387CDBC02F132
3 changed files with 23 additions and 0 deletions

11
.woodpecker/.deploy.yml Normal file
View file

@ -0,0 +1,11 @@
pipeline:
build:
image: alpine
branches: main
commands:
- apk update
- apk add openssh
- eval $(ssh-agent -s)
- echo "$M2_DEPLOY_KEY" | tr -d '\r' | ssh-add -
- ssh -o StrictHostKeyChecking=no root@$M2_HOST 'cd /var/www/m2.nz && git pull && hugo && chown www-data:users -R /var/www/m2.nz && sudo systemctl reload nginx.service'
secrets: [ m2_deploy_key, m2_host ]