image: archlinux
packages:
- go
- rsync
sources:
- https://git.sr.ht/~reesmichael1/chantpointer
environment:
deploy: chantpointer@142.93.10.195
secrets:
- 5c21e93c-6d8e-410a-9ae4-35dcc51acd8c
- fadfa027-e02e-46d2-bf1a-3547dfe92ccc
tasks:
- test: |
cd chantpointer
go test
- build: |
cd chantpointer
go build -o bin/server
- deploy: |
cd chantpointer
rsync -r bin $deploy:/home/chantpointer/deploy
rsync -r static $deploy:/home/chantpointer/deploy
rsync -r templates $deploy:/home/chantpointer/deploy
ssh $deploy "sudo systemctl restart chantpointer"