From b747ccb46fa20f4912890cf5fdd2b7f36021faf5 Mon Sep 17 00:00:00 2001 From: Peter Sanchez Date: Fri, 18 Oct 2024 07:38:49 -0600 Subject: [PATCH] Generic build file based on Drew Devaults build file. Not in use yet --- .build.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .build.yml diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..6b96273 --- /dev/null +++ b/.build.yml @@ -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 +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/ -- 2.45.2