~bfiedler/website

ref: af5c05b1a493b7e88c483481cfb7e1171456eab0 website/.build.yml -rw-r--r-- 1.0 KiB
af5c05b1 — Ben Fiedler Add the Go Programming Language blog to openring 1 year, 17 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
---
image: debian/unstable
packages:
  - golang-go
  - hugo
  - rsync
sources:
  - https://git.sr.ht/~bfiedler/website
  - https://git.sr.ht/~sircmpwn/openring
environment:
  user: deploy
  webhost: bfiedler.vsos.ethz.ch
  hostkey: ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMGkNr+BSfvo8i0+XGyktBac0t+IDg2J8g2HazyQuCVN
secrets:
  - e7266734-d2dc-46dc-a155-4225c901c280
tasks:
  - openring: |
      cd openring
      go build -o openring
  - build: |
      cd website
      ../openring/openring \
        -s https://blog.antei.de/feed.rss \
        -s https://blog.golang.org/feed.atom \
        -s https://christine.website/blog.rss \
        -s https://drewdevault.com/blog/index.xml \
        -s https://emersion.fr/blog/rss.xml \
        -s https://raymii.org/s/feed.xml \
        -s https://sourcehut.org/blog/index.xml \
        < external/openring.in.html \
        > layouts/partials/openring.html
      hugo --minify
  - upload: |
      mkdir -p $HOME/.ssh
      echo $webhost $hostkey > $HOME/.ssh/known_hosts
      cd website
      rsync -rdP public/ $user@$webhost: