Browse Source

CI

ANTIFASCISTA
Cat /dev/Nulo 2 months ago
parent
commit
9034739bfa
  1. 20
      .woodpecker.yml
  2. 2
      upload.sh

20
.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

2
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/

Loading…
Cancel
Save