~reesmichael1/chantpointer

ref: e8f306b2bbd69105afce04178a12356fcae8bc14 chantpointer/.build.yml -rw-r--r-- 669 bytes
e8f306b2Michael Rees Update URL of personal website 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
image: archlinux
packages:
    - go
    - rsync
sources:
    - https://git.sr.ht/~reesmichael1/chantpointer
secrets:
    - 5c21e93c-6d8e-410a-9ae4-35dcc51acd8c
    - b2db3c75-f665-474d-a8d7-134c4abb0246
    - ab5d9fdb-0e9d-4b4a-ade1-6c591ac6556b
tasks:
    - test: |
        cd chantpointer
        go test
    - build: |
        cd chantpointer
        go build -o bin/server
    - deploy: |
        cd chantpointer
        rsync -r bin chantpointer:/home/chantpointer/deploy
        rsync -r static chantpointer:/home/chantpointer/deploy
        rsync -r templates chantpointer:/home/chantpointer/deploy
        ssh chantpointer "sudo systemctl restart chantpointer"