mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-01 21:02:15 +00:00
Draft new post
This commit is contained in:
parent
fce5cde057
commit
cde31666a7
3 changed files with 23 additions and 0 deletions
11
.woodpecker/.deploy.yml
Normal file
11
.woodpecker/.deploy.yml
Normal 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 ]
|
Loading…
Add table
Add a link
Reference in a new issue