~ekez/negativefour

ref: a3ba218efef2773e5826b94d9ca3c096795b3ddc negativefour/.build.yml -rw-r--r-- 1.0 KiB
a3ba218eZeke Medley Fix race condition between apache restart and status check 7 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
image: alpine/latest
sources:
- https://git.sr.ht/~ekez/negativefour
secrets:
- 226db336-c96a-45eb-b55d-28cece902cb3
- d432e401-3d50-4498-965a-bb3387fbd436
tasks:
- deploy-www: |
    ssh -i ~/.ssh/id_rsa -o "StrictHostKeyChecking no" admin@35.163.177.223 "
    cd negativefour
    git checkout -- .
    git pull
    cd www
    npm install
    sudo systemctl restart negativefour.com"
- alert-www: |
    set +x
    curl \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"content":"'"[negativefour.com](https://negativefour.com) deployment complete"'"}' \
    $(cat ~/.WEBHOOK_URL)
    set -x
- deploy-serve: |
    ssh -i ~/.ssh/id_rsa -o "StrictHostKeyChecking no" admin@35.163.177.223 "
    cd negativefour
    git checkout -- .
    git pull
    cd serve
    npm install
    sudo systemctl restart serve.negativefour.com"
- alert-serve: |
    set +x
    curl \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"content":"'"serve.negativefour.com deployment complete"'"}' \
    $(cat ~/.WEBHOOK_URL)
    set -x