CI
This commit is contained in:
parent
733ec2fb65
commit
9034739bfa
2 changed files with 21 additions and 1 deletions
20
.woodpecker.yml
Normal file
20
.woodpecker.yml
Normal 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
|
|
@ -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/
|
||||
|
|
Reference in a new issue