2021-04-28 00:47:00 +02:00
|
|
|
image: archlinux
|
|
|
|
packages:
|
|
|
|
- rsync
|
|
|
|
- go
|
|
|
|
sources:
|
|
|
|
- https://git.sr.ht/~j-r/jitsilg
|
|
|
|
secrets:
|
|
|
|
- 4f7f1b3c-cdec-463a-97c4-745a139e74aa
|
|
|
|
tasks:
|
|
|
|
- build: |
|
|
|
|
cd jitsilg
|
2021-04-28 01:35:43 +02:00
|
|
|
CGO_ENABLED=0 go build -ldflags="-s -w" -o jitsilg ./cmd/jitsilg/
|
2021-04-28 00:47:00 +02:00
|
|
|
- deploy: |
|
|
|
|
cd jitsilg
|
|
|
|
sshopts="ssh -o StrictHostKeyChecking=no"
|
2021-04-28 01:19:13 +02:00
|
|
|
rsync --rsh="$sshopts" -rP jitsilg uploader@snowden.jugendhacker.de:/jitsilg/
|
2021-04-28 09:08:12 +02:00
|
|
|
triggers:
|
|
|
|
- action: email
|
|
|
|
condition: failure
|
|
|
|
to: j.r@jugendhacker.de
|