diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..3124344 --- /dev/null +++ b/.woodpecker.yml @@ -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 diff --git a/upload.sh b/upload.sh index e86546b..1eda37a 100755 --- a/upload.sh +++ b/upload.sh @@ -1,2 +1,2 @@ #!/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/