summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIwanIDev <iwan@iwani.dev>2026-03-21 17:56:04 +0000
committerIwanIDev <iwan@iwani.dev>2026-03-21 17:56:04 +0000
commitece957eb3d306e10914839ab8a6794447c17fc29 (patch)
tree3a806f169fbd4963ab717825d85574c6e13249f3
parentfb7fa2f1b8321d5505c0e3afda59cb9c904f106b (diff)
feat: integrate Openring into CI/CD
-rw-r--r--.github/workflows/docker_build.yml1
-rw-r--r--Dockerfile6
-rw-r--r--README.md27
3 files changed, 7 insertions, 27 deletions
diff --git a/.github/workflows/docker_build.yml b/.github/workflows/docker_build.yml
index cd7f303..42653f1 100644
--- a/.github/workflows/docker_build.yml
+++ b/.github/workflows/docker_build.yml
@@ -58,6 +58,7 @@ jobs:
platforms: linux/arm64
provenance: false
build-args: |
+ OPENRING_VERSION=latest
VITE_DRUPAL_BASE_URL=${{ vars.VITE_DRUPAL_BASE_URL }}
VITE_DRUPAL_API_PREFIX=${{ vars.VITE_DRUPAL_API_PREFIX }}
cache-from: type=gha
diff --git a/Dockerfile b/Dockerfile
index 9d21131..261f267 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,6 +2,12 @@ FROM oven/bun:1.2.22-alpine AS builder
WORKDIR /app
+ARG OPENRING_VERSION=latest
+ENV PATH="/root/go/bin:${PATH}"
+
+RUN apk add --no-cache go git ca-certificates && \
+ go install git.sr.ht/~sircmpwn/openring@${OPENRING_VERSION}
+
ARG VITE_DRUPAL_BASE_URL
ARG VITE_DRUPAL_API_PREFIX
ENV VITE_DRUPAL_BASE_URL=${VITE_DRUPAL_BASE_URL}
diff --git a/README.md b/README.md
index 4db02bf..fd3e7bb 100644
--- a/README.md
+++ b/README.md
@@ -1,29 +1,2 @@
# Astro Blog Site
This is my blog site written with Astro, Tailwind CSS, and shadcn/ui.
-
-## Openring integration
-
-This project integrates [`openring`](https://git.sr.ht/~sircmpwn/openring) to render a webring section on the homepage.
-
-### How it works
-
-- Feed sources are defined in `openring/feeds.txt`.
-- The template is defined in `openring/template.html`.
-- Generated output is written to `openring/out.html`.
-- `bun run dev` and `bun run build` both run `bun run openring:generate` first.
-
-### Install openring
-
-Install the `openring` binary (example using Go):
-
-```bash
-go install git.sr.ht/~sircmpwn/openring@latest
-```
-
-Make sure your Go bin directory is in `PATH`, then generate output:
-
-```bash
-bun run openring:generate
-```
-
-If `openring` is not installed (or feed fetch fails), the generator writes a small fallback section so builds still succeed.