This commit is contained in:
Cat /dev/Nulo 2021-10-08 22:36:33 -03:00
parent 733ec2fb65
commit 9034739bfa
2 changed files with 21 additions and 1 deletions

20
.woodpecker.yml Normal file
View File

@ -0,0 +1,20 @@
pipeline:
build:
image: docker.io/alpine:3.14
commands:
- apk add cmark
- ./build.sh
deploy:
image: docker.io/alpine:3.14
commands:
- apk add rsync openssh-client-default
- eval $(ssh-agent -s)
- echo "$${SSH_KEY}" | tr -d '\r' | ssh-add -
- ./upload.sh
when:
branch: ANTIFASCISTA
event: push
secrets:
- ssh_key

View File

@ -1,2 +1,2 @@
#!/bin/sh #!/bin/sh
rsync --rsh='ssh -p420' --progress --recursive --chmod=644 build/ root@nulo.in:/var/www/nulo.in/ rsync --rsh='ssh -p420' --progress --recursive --chmod=644 build/ diablo@nulo.in:/var/www/nulo.in/