mirror of
https://git.sr.ht/~j-r/jitsilg
synced 2024-05-29 05:53:21 +02:00
Add basic CI script to build and upload on push
This commit is contained in:
parent
d21f983c8b
commit
a01e9b39ad
16
.build.yml
Normal file
16
.build.yml
Normal 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/
|
Loading…
Reference in New Issue
Block a user