Add basic CI script to build and upload on push

This commit is contained in:
j.r 2021-04-28 00:47:00 +02:00
parent d21f983c8b
commit a01e9b39ad
No known key found for this signature in database
GPG Key ID: E74A18B933F9145E

16
.build.yml Normal file
View File

@ -0,0 +1,16 @@
image: archlinux
packages:
- rsync
- go
sources:
- https://git.sr.ht/~j-r/jitsilg
secrets:
- 4f7f1b3c-cdec-463a-97c4-745a139e74aa
tasks:
- build: |
cd jitsilg
go build -o jitsilg ./cmd/jitsilg/
- deploy: |
cd jitsilg
sshopts="ssh -o StrictHostKeyChecking=no"
rsync --rsh="$sshopts" -rP jitsilg uploader@snowden.jugendhacker.de:/var/www/upload.jugendhacker.de/jitsilg/