A drop-in, single-binary reimplementation of the caronc/apprise-api HTTP API in Go.
0

Configure Feed

Select the types of activity you want to include in your feed.

use goreleaser for docker builds

Kohei Watanabe (Jun 8, 2026, 11:12 PM +0900) 01108fd1 53187a4c

+33 -46
-3
.dockerignore
··· 1 - .git 2 - .github 3 - apprize
+6 -23
.forgejo/workflows/release.yml
··· 5 5 tags: 6 6 - "v*" 7 7 jobs: 8 - forgejo: 8 + release: 9 9 runs-on: self-hosted 10 10 steps: 11 11 - run: apk add nodejs ··· 15 15 - uses: https://github.com/actions/setup-go@v6 16 16 with: 17 17 go-version-file: go.mod 18 + - uses: https://github.com/docker/login-action@v4 19 + with: 20 + username: ${{ secrets.DOCKER_USERNAME }} 21 + password: ${{ secrets.DOCKER_PASSWORD }} 18 22 - uses: https://github.com/goreleaser/goreleaser-action@v7 19 23 with: 20 24 args: release --clean 21 25 env: 22 26 GORELEASER_FORCE_TOKEN: gitea 23 27 GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} 24 - docker: 25 - runs-on: self-hosted 26 - steps: 27 - - run: apk add nodejs 28 - - uses: https://github.com/actions/checkout@v6 29 - - uses: https://github.com/docker/login-action@v4 30 - with: 31 - username: ${{ secrets.DOCKER_USERNAME }} 32 - password: ${{ secrets.DOCKER_PASSWORD }} 33 - - uses: https://github.com/docker/metadata-action@v6 34 - id: meta 35 - with: 36 - images: ${{ secrets.DOCKER_USERNAME }}/apprize 37 - tags: | 38 - type=semver,pattern={{version}} 39 - type=semver,pattern={{major}}.{{minor}} 40 - type=semver,pattern={{major}} 41 - - uses: https://github.com/docker/build-push-action@v7 42 - with: 43 - push: true 44 - tags: ${{ steps.meta.outputs.tags }} 45 - labels: ${{ steps.meta.outputs.labels }} 28 + KO_DOCKER_REPO: ${{ secrets.DOCKER_USERNAME }}/apprize
-20
Dockerfile
··· 1 - # syntax=docker/dockerfile:1@sha256:87999aa3d42bdc6bea60565083ee17e86d1f3339802f543c0d03998580f9cb89 2 - 3 - FROM golang:1.26@sha256:68cb6d68bed024785b69195b89af7ac7a444f27791435f98647edff595aa0479 AS build 4 - WORKDIR /src 5 - 6 - COPY go.mod go.sum ./ 7 - RUN go mod download 8 - 9 - COPY . . 10 - RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -trimpath -ldflags="-s -w" -o /out/apprize 11 - 12 - FROM gcr.io/distroless/base-debian12:nonroot@sha256:7a75a36f4bec82a7542c64195e402907486f9a4dd2f8797a976aa0cf31cfb470 13 - WORKDIR /app 14 - 15 - COPY --from=build /out/apprize /usr/local/bin/apprize 16 - 17 - ENV APPRIZE_BIND=:8000 18 - EXPOSE 8000 19 - 20 - ENTRYPOINT ["/usr/local/bin/apprize"]
+27
goreleaser.yml
··· 2 2 gitea_urls: 3 3 api: https://git.fogtype.com/api/v1 4 4 download: https://git.fogtype.com 5 + builds: 6 + - id: apprize 7 + goos: 8 + - linux 9 + - darwin 10 + - windows 11 + goarch: 12 + - amd64 13 + - arm64 14 + ldflags: 15 + - -s -w 16 + flags: 17 + - -trimpath 18 + env: 19 + - CGO_ENABLED=0 20 + kos: 21 + - id: apprize 22 + build: apprize 23 + bare: true 24 + platforms: 25 + - linux/amd64 26 + - linux/arm64 27 + tags: 28 + - "{{ .Version }}" 29 + - "{{ .Major }}.{{ .Minor }}" 30 + - "{{ .Major }}" 31 + - latest