mirror of https://git.sr.ht/~j-r/jitsilg
21 lines
489 B
YAML
21 lines
489 B
YAML
image: archlinux
|
|
packages:
|
|
- rsync
|
|
- go
|
|
sources:
|
|
- https://git.sr.ht/~j-r/jitsilg
|
|
secrets:
|
|
- 4f7f1b3c-cdec-463a-97c4-745a139e74aa
|
|
tasks:
|
|
- build: |
|
|
cd jitsilg
|
|
CGO_ENABLED=0 go build -ldflags="-s -w" -o jitsilg ./cmd/jitsilg/
|
|
- deploy: |
|
|
cd jitsilg
|
|
sshopts="ssh -o StrictHostKeyChecking=no"
|
|
rsync --rsh="$sshopts" -rP jitsilg uploader@snowden.jugendhacker.de:/jitsilg/
|
|
triggers:
|
|
- action: email
|
|
condition: failure
|
|
to: j.r@jugendhacker.de
|