~sircmpwn/drewdevault.com

drewdevault.com/.build.yml -rw-r--r-- 1.2 KiB
924e2a98Oliver Leaver-Smith Correct link to alps 2 days 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
40
image: alpine/edge
packages:
  - rsync
  - go
  - hugo
sources:
  - https://git.sr.ht/~sircmpwn/drewdevault.com
  - https://git.sr.ht/~sircmpwn/openring
secrets:
  - 160a72cf-34d6-47b7-928b-c13b42b4d4f6
triggers:
  - action: email
    condition: always
    to: Drew DeVault <sir@cmpwn.com>
tasks:
- openring: |
    cd openring
    go build -o openring
    sudo cp openring /usr/local/bin/
- build: |
    cd drewdevault.com
    /usr/local/bin/openring \
      -s https://emersion.fr/blog/rss.xml \
      -s http://way-cooler.org/feed.xml \
      -s https://danluu.com/atom.xml \
      -s https://os.phil-opp.com/rss.xml \
      -s https://blog.golang.org/feed.atom \
      -s https://aphyr.com/posts.atom \
      -s https://sourcehut.org/blog/index.xml \
      -s https://100r.co/links/rss.xml \
      -s https://tonsky.me/blog/atom.xml \
      < webring-in.template \
      > layouts/partials/webring-out.html
    hugo
- upload: |
    cd drewdevault.com
    echo "StrictHostKeyChecking=no" >> ~/.ssh/config
    rsync -rP public/ deploy@drewdevault.com:/var/www/drewdevault.com/
    rsync -rP public/gemini/ deploy@drewdevault.com:/srv/gemini/drewdevault.com/
    rsync -rP public/blog/gemini.xml deploy@drewdevault.com:/srv/gemini/drewdevault.com/feed.xml