~netlandish/linktaco-blog

b747ccb46fa20f4912890cf5fdd2b7f36021faf5 — Peter Sanchez a month ago afeb617
Generic build file based on Drew Devaults build file. Not in use yet
1 files changed, 31 insertions(+), 0 deletions(-)

A .build.yml
A .build.yml => .build.yml +31 -0
@@ 0,0 1,31 @@
image: alpine/edge
packages:
  - go
  - hugo
  - rsync
sources:
  - https://git.code.netlandish.com/~netlandish/linktaco-blog
  - https://git.sr.ht/~sircmpwn/openring
triggers:
  - action: email
    condition: always
    to: Peter Sanchez <pjs@petersanchez.com>
tasks:
- openring: |
    cd openring
    go build -o openring
    sudo cp openring /usr/local/bin/
- build: |
    cd linktaco-blog
    /usr/local/bin/openring \
      -s https://emersion.fr/blog/rss.xml \
      -s https://drewdevault.com/blog/index.xml \
      -s https://blog.golang.org/feed.atom \
      -s https://sourcehut.org/blog/index.xml \
      -s https://100r.co/links/rss.xml \
      < webring-in.template \
      > layouts/partials/webring-out.html
    hugo
- upload: |
    cd linktaco-blog
    rsync -rzv --delete ./public/ links@ah-web01:blog/