Skip to content

Commit 22bfcc9

Browse files
committed
Note the fork, link to its source and build its image
AGPLv3 asks a modified version to say so and to offer its source to the people using it, so the README notes the changes and the links in the app point here. The workflow builds the image from tags named docspring-*, which no upstream workflow picks up.
1 parent 9da84c5 commit 22bfcc9

4 files changed

Lines changed: 55 additions & 2 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build DocSpring image
2+
3+
on:
4+
push:
5+
tags: ["docspring-*"]
6+
7+
permissions:
8+
contents: read
9+
packages: write
10+
11+
env:
12+
IMAGE: ghcr.io/docspring/analytics
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-24.04
17+
18+
steps:
19+
- name: Docker meta
20+
id: meta
21+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
22+
with:
23+
images: ${{ env.IMAGE }}
24+
tags: type=ref,event=tag
25+
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
28+
29+
- name: Login to GitHub Container Registry
30+
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0
31+
with:
32+
registry: ghcr.io
33+
username: ${{ github.actor }}
34+
password: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: Build and push
37+
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
38+
with:
39+
platforms: linux/amd64
40+
push: true
41+
tags: ${{ steps.meta.outputs.tags }}
42+
labels: ${{ steps.meta.outputs.labels }}
43+
cache-from: type=gha
44+
cache-to: type=gha,mode=max
45+
build-args: |
46+
MIX_ENV=ce
47+
BUILD_METADATA=${{ steps.meta.outputs.json }}

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
> [!NOTE]
2+
> This is DocSpring's fork, derived from Plausible Analytics and not affiliated with Plausible Insights OÜ. The
3+
> `docspring` branch is Plausible CE v3.2.1, modified in November 2026 so the IP block list accepts CIDR ranges.
4+
> `git log v3.2.1..docspring` lists every change. It's licensed under AGPLv3, like the original, and the original's
5+
> README follows.
6+
17
# Plausible Analytics
28

39
<p align="center">

‎lib/plausible_web/templates/layout/_footer.html.heex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@
237237
<a
238238
rel="noreferrer"
239239
target="_blank"
240-
href="https://github.com/plausible/analytics"
240+
href="https://github.com/DocSpring/analytics/tree/docspring"
241241
class="text-base leading-6 text-gray-300 hover:text-white"
242242
>
243243
GitHub

‎lib/plausible_web/templates/layout/_header.html.heex‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
:if={ce?()}
139139
class="!flex justify-between gap-x-12"
140140
new_tab
141-
href="https://github.com/plausible/analytics"
141+
href="https://github.com/DocSpring/analytics/tree/docspring"
142142
>
143143
Github repo
144144
</.dropdown_item>

0 commit comments

Comments
 (0)