From 1bc45da013415dc66621dc72eb21be9640028f4d Mon Sep 17 00:00:00 2001
From: James Cox
Date: Thu, 19 Mar 2026 18:46:54 -0500
Subject: [PATCH] chore(ci): rebrand and streamline the release pipeline (#66)
* chore(ci): rebrand and streamline the release pipeline
- CI/CD:
- replace the old `develop`/`master` pipelines with explicit validation, nightly, preview, and release workflows
- switch stable releases to `main`, keep `develop` for nightly builds, and make preview image builds manual-only
- update the reusable migration check so callers pass explicit refs and validation works correctly across PRs, pushes, and release flows
- Packaging:
- consolidate container packaging onto the root `Dockerfile` and remove `Dockerfile.ci`
- stop mutating tracked source files during image builds by building frontend and backend assets inside the container pipeline
- remove vendored `unrar` binaries and build the upstream CLI from source during the image build
- keep runtime compatibility for existing Booklore deployments by preserving env vars, ports, mount paths, and legacy internal user defaults
- Deploy Surface:
- move deployment examples under `deploy/` and Docker runtime assets under `packaging/docker`
- rebrand image, chart, and helper-script references from Booklore to Grimmory on the build and release surfaces only
- update Compose, Helm, and Podman examples to reflect Grimmory image names and the stable/nightly tag model
- Docs:
- add the implementation plan under `docs/plans/ci-cd-rebrand-main-nightly.md`
- refresh README, contributing guidance, PR template, and operational docs to match the new branch, image, and upgrade story
- document the Booklore-to-Grimmory image swap path so existing self-hosted installs can upgrade by changing only the image reference
- Validation:
- pass `git diff --check`
- parse all workflow YAML successfully
- pass `shellcheck` on the touched shell scripts
* fix(ci): address review feedback and dedupe test workflows
- Workflows:
- extract backend and frontend test execution into a shared reusable workflow used by validation, nightly, and release pipelines
- simplify migration ref handling, sanitize manual preview PR inputs, reduce preview cache writes, and update Flyway to the current image tag
- remove unnecessary duplicated job definitions so the test path has one source of truth
- Packaging:
- verify the downloaded UnRAR source tarball with SHA256 before extraction
- remove the unnecessary forced npm install path from the production Docker build
- harden container startup by failing clearly when APP_USER collides with an unexpected UID or GID
- Versioning and deploy docs:
- keep app version metadata embedded in the built image instead of asking operators to set APP_VERSION in deploy examples
- update runtime release links and support links to the Grimmory repository
- add the Quadlet install section and finish the remaining review-targeted doc fixes and branding cleanup
- Validation:
- pass git diff --check
- pass shellcheck on packaging/docker/entrypoint.sh
- parse all GitHub workflow YAML successfully
* fix: Resolve flyway version
* fix: Resolve some noise in readme
* feat(release): migrate stable releases to semantic-release
- Release automation:
- replace the manual stable bump flow and Release Drafter with semantic-release on `main`
- split stable delivery into a semantic-release workflow that computes version, changelog, tag, and draft GitHub release plus a tag-driven workflow that publishes container images
- add a maintainer-run dry-run workflow to preview the next stable version and release notes before publishing
- Release tooling:
- add a dedicated `tools/release` package with semantic-release configuration and lockfile
- encode Grimmory's release policy so `feat` triggers minor releases, `fix`/`perf`/`refactor` trigger patch releases, and `docs`/`ci`/`build`/`chore`/`test`/`style` are changelog-only
- maintain a committed `CHANGELOG.md` and draft GitHub releases from the same release notes source
- Contributor workflow:
- enforce conventional PR titles for PRs targeting `develop` and `main`
- document that feature work is squash-merged into `develop` and that stable releases are computed from the preserved conventional commit history promoted to `main`
- update README, contributing guidance, and the PR template to match the new release process
- Bootstrap:
- add the semantic-release migration plan under `docs/plans/semantic-release-migration.md`
- seed the local release baseline with `v2.2.1` on commit `384512534fe5a2f42d8482a0646337e28ef54e52`
- configure the stable image publish workflow to ignore the bootstrap tag so the first semantic-release-managed release can be `v2.2.2`
- Validation:
- pass `git diff --check`
- parse all workflow YAML successfully
- verify the semantic-release config loads correctly
- verify the local bootstrap tag is present as `v2.2.1`
* Add proper concurrency to prevent version collisions
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Tighten the release preview gate to ensure commits are present in origin/head
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* Update README.md
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* fix(ci): fail migration checks on missing diff base
- Migration checks:
- remove the implicit fallback that rewrote an all-zero base ref to `head^`
- fail fast when callers provide the all-zero sentinel instead of a real comparison base so multi-commit pushes and root-history cases do not silently skip migration files
- Validation:
- pass `git diff --check`
- parse `.github/workflows/migrations-check.yml` successfully
* fix(packaging): source unrar from linuxserver layer
- Container packaging:
- replace the custom UnRAR source build stage with the published `linuxserver/unrar` image layer
- copy the provided `/usr/bin/unrar-alpine` binary into the final runtime image as `/usr/local/bin/unrar`
- remove the checksum, tarball, and local compile path from the Dockerfile
- Validation:
- pass `git diff --check`
---------
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
---
.dockerignore | 17 +-
.github/dependabot.yml | 20 +
.github/pull_request_template.md | 6 +-
.github/release-drafter.yml | 72 -
.github/workflows/ci-validate.yml | 60 +
.github/workflows/develop-pipeline.yml | 270 -
.github/workflows/master-pipeline.yml | 335 -
.github/workflows/migrations-check.yml | 47 +-
.github/workflows/preview-image.yml | 82 +
.github/workflows/publish-nightly.yml | 99 +
.github/workflows/publish-release.yml | 76 +
.github/workflows/release-main.yml | 72 +
.github/workflows/release-preview.yml | 59 +
.github/workflows/semantic-pr-title.yml | 32 +
.github/workflows/test-suite.yml | 127 +
CHANGELOG.md | 5 +
CONTRIBUTING.md | 54 +-
Dockerfile | 87 +-
Dockerfile.ci | 35 -
README.md | 23 +-
.../org/booklore/service/VersionService.java | 8 +-
.../src/main/resources/application.yaml | 4 +-
.../github-support-dialog.html | 2 +-
.../layout-menu/app.menu.component.ts | 4 +-
deploy/compose/docker-compose.yml | 60 +
.../helm/grimmory}/Chart.yaml | 10 +-
.../helm/grimmory}/templates/_helpers.tpl | 20 +-
.../helm/grimmory}/templates/deployment.yaml | 14 +-
.../helm/grimmory}/templates/ingress.yaml | 6 +-
.../helm/grimmory}/templates/pvc.yaml | 8 +-
.../helm/grimmory}/templates/service.yaml | 6 +-
.../grimmory}/templates/serviceaccount.yaml | 4 +-
.../helm/grimmory}/values.yaml | 61 +-
.../podman/quadlet}/README.md | 19 +-
deploy/podman/quadlet/grimmory-data.volume | 2 +
deploy/podman/quadlet/grimmory-db.container | 21 +
deploy/podman/quadlet/grimmory-db.volume | 2 +
deploy/podman/quadlet/grimmory.container | 30 +
.../podman/quadlet/grimmory.pod | 4 +-
docker/unrar/unrar-amd64 | Bin 433064 -> 0 bytes
docker/unrar/unrar-arm64 | Bin 396000 -> 0 bytes
docs/Komga-API.md | 26 +-
docs/OIDC-Setup-With-PocketID.md | 12 +-
docs/forward-auth-with-proxy.md | 14 +-
docs/plans/ci-cd-rebrand-main-nightly.md | 47 +
docs/plans/semantic-release-migration.md | 49 +
entrypoint.sh | 19 -
example-docker/docker-compose.yml | 54 -
example-podman/booklore-data.volume | 2 -
example-podman/booklore-db.container | 21 -
example-podman/booklore-db.volume | 2 -
example-podman/booklore.container | 27 -
packaging/docker/entrypoint.sh | 37 +
scripts/{ => i18n}/weblate-setup.sh | 12 +-
scripts/{ => release}/docker-buildx-push.sh | 8 +-
scripts/{ => release}/notify-discord.sh | 6 +-
tools/release/package-lock.json | 6199 +++++++++++++++++
tools/release/package.json | 18 +
tools/release/release.config.cjs | 90 +
59 files changed, 7445 insertions(+), 1061 deletions(-)
delete mode 100644 .github/release-drafter.yml
create mode 100644 .github/workflows/ci-validate.yml
delete mode 100644 .github/workflows/develop-pipeline.yml
delete mode 100644 .github/workflows/master-pipeline.yml
create mode 100644 .github/workflows/preview-image.yml
create mode 100644 .github/workflows/publish-nightly.yml
create mode 100644 .github/workflows/publish-release.yml
create mode 100644 .github/workflows/release-main.yml
create mode 100644 .github/workflows/release-preview.yml
create mode 100644 .github/workflows/semantic-pr-title.yml
create mode 100644 .github/workflows/test-suite.yml
create mode 100644 CHANGELOG.md
delete mode 100644 Dockerfile.ci
create mode 100644 deploy/compose/docker-compose.yml
rename {example-chart => deploy/helm/grimmory}/Chart.yaml (90%)
rename {example-chart => deploy/helm/grimmory}/templates/_helpers.tpl (76%)
rename {example-chart => deploy/helm/grimmory}/templates/deployment.yaml (92%)
rename {example-chart => deploy/helm/grimmory}/templates/ingress.yaml (85%)
rename {example-chart => deploy/helm/grimmory}/templates/pvc.yaml (75%)
rename {example-chart => deploy/helm/grimmory}/templates/service.yaml (57%)
rename {example-chart => deploy/helm/grimmory}/templates/serviceaccount.yaml (73%)
rename {example-chart => deploy/helm/grimmory}/values.yaml (79%)
rename {example-podman => deploy/podman/quadlet}/README.md (60%)
create mode 100644 deploy/podman/quadlet/grimmory-data.volume
create mode 100644 deploy/podman/quadlet/grimmory-db.container
create mode 100644 deploy/podman/quadlet/grimmory-db.volume
create mode 100644 deploy/podman/quadlet/grimmory.container
rename example-podman/booklore.pod => deploy/podman/quadlet/grimmory.pod (60%)
delete mode 100755 docker/unrar/unrar-amd64
delete mode 100755 docker/unrar/unrar-arm64
create mode 100644 docs/plans/ci-cd-rebrand-main-nightly.md
create mode 100644 docs/plans/semantic-release-migration.md
delete mode 100644 entrypoint.sh
delete mode 100644 example-docker/docker-compose.yml
delete mode 100644 example-podman/booklore-data.volume
delete mode 100644 example-podman/booklore-db.container
delete mode 100644 example-podman/booklore-db.volume
delete mode 100644 example-podman/booklore.container
create mode 100644 packaging/docker/entrypoint.sh
rename scripts/{ => i18n}/weblate-setup.sh (95%)
rename scripts/{ => release}/docker-buildx-push.sh (68%)
rename scripts/{ => release}/notify-discord.sh (92%)
create mode 100644 tools/release/package-lock.json
create mode 100644 tools/release/package.json
create mode 100644 tools/release/release.config.cjs
diff --git a/.dockerignore b/.dockerignore
index 9b684cfb2..4d665402a 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -1,15 +1,14 @@
-.git
-.github
-.idea
-.vscode
-.angular
+**
+!Dockerfile
+!.dockerignore
+!booklore-api/**
+!booklore-ui/**
+!packaging/docker/**
booklore-ui/node_modules
booklore-ui/dist
booklore-ui/.angular
booklore-ui/test-results
-booklore-api/build/reports
-booklore-api/build/test-results
-
-*.md
+booklore-api/build
+booklore-api/.gradle
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
index b4b65005a..bdad50527 100644
--- a/.github/dependabot.yml
+++ b/.github/dependabot.yml
@@ -38,6 +38,26 @@ updates:
patterns:
- "*"
+ # Release tooling โ npm (semantic-release)
+ - package-ecosystem: "npm"
+ directory: "/tools/release"
+ schedule:
+ interval: "weekly"
+ day: "friday"
+ time: "03:00"
+ timezone: "UTC"
+ open-pull-requests-limit: 5
+ labels:
+ - "dependencies"
+ - "ci"
+ - "release"
+ commit-message:
+ prefix: "chore(deps)"
+ groups:
+ release-tooling:
+ patterns:
+ - "*"
+
# GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md
index 42666b67d..7dd3daac3 100644
--- a/.github/pull_request_template.md
+++ b/.github/pull_request_template.md
@@ -2,9 +2,11 @@
+> **Required for `develop` and `main`.** Your PR title must use Conventional Commit format because maintainers squash-merge with the PR title and stable releases are computed from commit history. Example: `fix(reader): prevent blank pages on chapter jump`
+
**Linked Issue:** Fixes #
-> **Required.** Every PR must reference an approved issue. If no issue exists, [open one](https://github.com/booklore-app/booklore/issues/new) and wait for maintainer approval before submitting a PR. Unsolicited PRs without a linked issue will be closed.
+> **Required.** Every PR must reference an approved issue. If no issue exists, [open one](https://github.com/grimmory-tools/grimmory/issues/new) and wait for maintainer approval before submitting a PR. Unsolicited PRs without a linked issue will be closed.
## ๐ท๏ธ Type of Change
@@ -82,7 +84,7 @@ PASTE OUTPUT HERE
- [ ] PR is reasonably scoped (PRs over 1000+ changed lines will be closed, split into smaller PRs)
- [ ] No unsolicited refactors, cleanups, or "improvements" are bundled in
- [ ] Flyway migration versioning is correct _(if schema was modified)_
-- [ ] Documentation PR submitted to [booklore-docs](https://github.com/booklore-app/booklore-docs) _(if user-facing changes)_
+- [ ] Required documentation updates are included in this repo or the current Grimmory docs surface _(if user-facing changes)_
### ๐ค AI-Assisted Contributions
diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
deleted file mode 100644
index 89c5a28ab..000000000
--- a/.github/release-drafter.yml
+++ /dev/null
@@ -1,72 +0,0 @@
-name-template: 'Release v$RESOLVED_VERSION'
-tag-template: 'v$RESOLVED_VERSION'
-
-version-resolver:
- major:
- labels:
- - 'major'
- minor:
- labels:
- - 'minor'
- patch:
- labels:
- - 'patch'
- default: patch
-
-categories:
- - title: '๐ New Features'
- labels:
- - 'feature'
- - title: 'โจ Enhancements'
- labels:
- - 'enhancement'
- - title: '๐จ UI Tweaks'
- labels:
- - 'ui tweaks'
- - title: '๐ Bug Fixes'
- labels:
- - 'bug'
- - 'fix'
- - title: 'โก Performance'
- labels:
- - 'performance'
- - title: '๐ ๏ธ Refactoring & Maintenance'
- labels:
- - 'refactor'
- - 'cleanup'
- - 'chore'
- - title: '๐ฆ Dependencies'
- labels:
- - 'dependencies'
- - 'dependency'
- - 'deps'
- - title: 'โ๏ธ CI/CD'
- labels:
- - 'ci'
- - 'cd'
- - 'workflow'
- - title: '๐ Documentation'
- labels:
- - 'docs'
- - 'documentation'
- - title: '๐งช Experimental'
- labels:
- - 'exploration'
- - 'experimental'
-
-exclude-labels:
- - 'skip changelog'
-
-change-template: '- $TITLE (#$NUMBER) by @$AUTHOR'
-
-template: |
- ## ๐ What's New in v$RESOLVED_VERSION
-
- $CHANGES
-
- ## ๐ณ Docker Images
-
- - **Docker Hub:** `booklore/booklore:v$RESOLVED_VERSION`
- - **GitHub Container Registry:** `ghcr.io/booklore-app/booklore:v$RESOLVED_VERSION`
-
- **Full Changelog**: https://github.com/booklore-app/booklore/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
diff --git a/.github/workflows/ci-validate.yml b/.github/workflows/ci-validate.yml
new file mode 100644
index 000000000..1aea39264
--- /dev/null
+++ b/.github/workflows/ci-validate.yml
@@ -0,0 +1,60 @@
+name: CI - Validate
+
+on:
+ pull_request:
+ branches:
+ - develop
+ - main
+ push:
+ branches:
+ - develop
+
+jobs:
+ migration-check:
+ name: Flyway Migration Check
+ if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }}
+ uses: ./.github/workflows/migrations-check.yml
+ with:
+ base_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
+ head_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
+ checkout_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
+
+ test-suite:
+ name: Test Suite
+ if: ${{ (github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')) && (needs.migration-check.result == 'success' || needs.migration-check.result == 'skipped') }}
+ needs: [migration-check]
+ uses: ./.github/workflows/test-suite.yml
+ with:
+ checkout_ref: ${{ github.sha }}
+
+ packaging-smoke-test:
+ name: Packaging Smoke Test
+ if: ${{ (github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]')) && needs.test-suite.result == 'success' }}
+ needs: [migration-check, test-suite]
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: read
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
+
+ - name: Set Up QEMU for Multi-Arch Builds
+ uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
+
+ - name: Set Up Docker Buildx
+ uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+
+ - name: Build Runtime Image
+ uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
+ with:
+ context: .
+ file: Dockerfile
+ platforms: linux/amd64
+ push: false
+ build-args: |
+ APP_VERSION=ci-${{ github.sha }}
+ APP_REVISION=${{ github.sha }}
+ cache-from: type=gha
+ cache-to: type=gha,mode=max
diff --git a/.github/workflows/develop-pipeline.yml b/.github/workflows/develop-pipeline.yml
deleted file mode 100644
index a6ccc9fb3..000000000
--- a/.github/workflows/develop-pipeline.yml
+++ /dev/null
@@ -1,270 +0,0 @@
-name: Develop & PR โ Build, Test, and Container Publish
-
-on:
- push:
- branches:
- - develop
- pull_request:
- branches:
- - '**'
-
-jobs:
- migration-check:
- name: Flyway Migration Check
- uses: ./.github/workflows/migrations-check.yml
- with:
- base_ref: 'develop'
- head_ref: 'HEAD'
-
- backend-tests:
- name: Backend Tests
- needs: [ migration-check ]
- if: needs.migration-check.result == 'success' || needs.migration-check.result == 'skipped'
- runs-on: ubuntu-latest
-
- permissions:
- contents: read
- checks: write
- pull-requests: write
-
- steps:
- - name: Checkout Repository
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
-
- - name: Set Up JDK 25
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
- with:
- java-version: '25'
- distribution: 'temurin'
- cache: gradle
-
- - name: Execute Backend Tests
- id: backend_tests
- working-directory: ./booklore-api
- run: |
- echo "Running backend tests..."
- ./gradlew test --no-daemon --parallel --build-cache
- continue-on-error: true
-
- - name: Publish Backend Test Results
- uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
- if: always()
- with:
- files: booklore-api/build/test-results/**/*.xml
- check_name: Backend Test Results
-
- - name: Upload Backend Test Reports
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
- if: always()
- with:
- name: backend-test-reports
- path: |
- booklore-api/build/reports/tests/
- booklore-api/build/test-results/
- retention-days: 30
-
- - name: Validate Backend Test Results
- if: steps.backend_tests.outcome == 'failure'
- run: |
- echo "โ Backend tests failed"
- exit 1
-
- frontend-tests:
- name: Frontend Tests
- needs: [ migration-check ]
- if: needs.migration-check.result == 'success' || needs.migration-check.result == 'skipped'
- runs-on: ubuntu-latest
-
- permissions:
- contents: read
- checks: write
- pull-requests: write
-
- steps:
- - name: Checkout Repository
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
-
- - name: Set Up Node.js
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
- with:
- node-version: '24'
- cache: 'npm'
- cache-dependency-path: booklore-ui/package-lock.json
-
- - name: Install Frontend Dependencies
- working-directory: ./booklore-ui
- run: npm ci
-
- - name: Audit Frontend Dependencies
- working-directory: ./booklore-ui
- run: npm audit --audit-level=high
-
- - name: Validate Dependency Tree
- working-directory: ./booklore-ui
- run: npm ls --depth=0
-
-
- - name: Execute Frontend Tests
- id: frontend_tests
- working-directory: ./booklore-ui
- run: |
- echo "Running frontend tests..."
- npx ng test
- continue-on-error: true
-
- - name: Publish Frontend Test Results
- uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
- if: always()
- with:
- files: booklore-ui/test-results/vitest-results.xml
- check_name: Frontend Test Results
-
- - name: Upload Frontend Test Reports
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
- if: always()
- with:
- name: frontend-test-reports
- path: |
- booklore-ui/test-results/vitest-results.xml
- retention-days: 30
-
- - name: Validate Frontend Test Results
- if: steps.frontend_tests.outcome == 'failure'
- run: |
- echo "โ Frontend tests failed"
- exit 1
-
- build-and-push:
- name: Build and Push Container
- needs: [ backend-tests, frontend-tests ]
- runs-on: ubuntu-latest
-
- permissions:
- contents: read
- packages: write
-
- steps:
- - name: Checkout Repository
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- with:
- fetch-depth: 0
-
- # ----------------------------------------
- # Image tagging
- # ----------------------------------------
- - name: Generate Image Tag
- id: set_image_tag
- run: |
- short_sha=$(git rev-parse --short HEAD)
-
- if [ "${{ github.event_name }}" = "pull_request" ]; then
- image_tag="pr-${{ github.event.pull_request.number }}-${short_sha}"
- else
- image_tag="develop-${short_sha}"
- fi
-
- echo "image_tag=$image_tag" >> $GITHUB_ENV
- echo "Image tag: $image_tag"
-
- # ----------------------------------------
- # Native Angular build
- # ----------------------------------------
- - name: Set Up Node.js
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
- with:
- node-version: '24'
- cache: 'npm'
- cache-dependency-path: booklore-ui/package-lock.json
-
- - name: Install Frontend Dependencies
- working-directory: ./booklore-ui
- run: npm ci
-
- - name: Audit Frontend Dependencies
- working-directory: ./booklore-ui
- run: npm audit --audit-level=high
-
- - name: Validate Dependency Tree
- working-directory: ./booklore-ui
- run: npm ls --depth=0
-
-
- - name: Build Angular App
- working-directory: ./booklore-ui
- run: npx ng build --configuration=production
-
- # ----------------------------------------
- # Native Gradle build
- # ----------------------------------------
- - name: Set Up JDK 25
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
- with:
- java-version: '25'
- distribution: 'temurin'
- cache: gradle
-
- - name: Copy Angular Dist to Spring Boot Resources
- run: cp -r booklore-ui/dist/booklore/browser/. booklore-api/src/main/resources/static/
-
- - name: Inject Version into application.yaml
- env:
- APP_VERSION: ${{ env.image_tag }}
- run: |
- sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.52.2/yq_linux_amd64
- sudo chmod +x /usr/local/bin/yq
- yq eval '.app.version = strenv(APP_VERSION)' -i booklore-api/src/main/resources/application.yaml
-
- - name: Build Spring Boot JAR
- working-directory: ./booklore-api
- run: ./gradlew clean build -x test --no-daemon --parallel --build-cache
-
- # ----------------------------------------
- # Environment setup
- # ----------------------------------------
- - name: Set Up QEMU for Multi-Arch Builds
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
-
- - name: Set Up Docker Buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
-
- # ----------------------------------------
- # Docker login (pushes & internal PRs only)
- # ----------------------------------------
- - name: Authenticate to Docker Hub
- if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
- with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
-
- - name: Authenticate to GitHub Container Registry
- if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
- with:
- registry: ghcr.io
- username: ${{ github.actor }}
- password: ${{ github.token }}
-
- # ----------------------------------------
- # Docker build & push (push + internal PRs)
- # ----------------------------------------
- - name: Build and push Docker image
- if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository
- uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
- with:
- context: .
- file: Dockerfile.ci
- platforms: linux/amd64,linux/arm64
- push: true
- tags: |
- booklore/booklore:${{ env.image_tag }}
- ghcr.io/booklore-app/booklore:${{ env.image_tag }}
- build-args: |
- APP_VERSION=${{ env.image_tag }}
- APP_REVISION=${{ github.sha }}
- cache-from: |
- type=gha
- type=registry,ref=ghcr.io/booklore-app/booklore:buildcache
- cache-to: |
- type=gha,mode=max
- type=registry,ref=ghcr.io/booklore-app/booklore:buildcache,mode=max
diff --git a/.github/workflows/master-pipeline.yml b/.github/workflows/master-pipeline.yml
deleted file mode 100644
index 90ecb2293..000000000
--- a/.github/workflows/master-pipeline.yml
+++ /dev/null
@@ -1,335 +0,0 @@
-name: Master - Build, Tag, Push, and Release
-
-on:
- push:
- branches:
- - 'master'
-
-jobs:
- get-base-ref:
- name: Get Base Ref
- runs-on: ubuntu-latest
- outputs:
- base_ref: ${{ steps.get_base.outputs.base_ref }}
- steps:
- - name: Checkout Repository
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- with:
- fetch-depth: 2
- - name: Get Base Ref
- id: get_base
- run: echo "base_ref=$(git rev-parse HEAD~1)" >> $GITHUB_OUTPUT
-
- migration-check:
- name: Flyway Migration Check on Master
- needs: [ get-base-ref ]
- uses: ./.github/workflows/migrations-check.yml
- with:
- base_ref: ${{ needs.get-base-ref.outputs.base_ref }}
- head_ref: ${{ github.sha }}
-
- backend-tests:
- name: Backend Tests
- needs: [ migration-check ]
- if: needs.migration-check.result == 'success' || needs.migration-check.result == 'skipped'
- runs-on: ubuntu-latest
-
- permissions:
- contents: read
- checks: write
- pull-requests: write
-
- steps:
- - name: Checkout Repository
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
-
- - name: Set Up JDK 25
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
- with:
- java-version: '25'
- distribution: 'temurin'
- cache: gradle
-
- - name: Execute Backend Tests
- id: backend_tests
- working-directory: ./booklore-api
- run: |
- echo "Running backend tests..."
- ./gradlew test --no-daemon --parallel --build-cache
- continue-on-error: true
-
- - name: Publish Backend Test Results
- uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
- if: always()
- with:
- files: booklore-api/build/test-results/**/*.xml
- check_name: Backend Test Results
-
- - name: Upload Backend Test Reports
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
- if: always()
- with:
- name: backend-test-reports
- path: |
- booklore-api/build/reports/tests/
- booklore-api/build/test-results/
- retention-days: 30
-
- - name: Validate Backend Test Results
- if: steps.backend_tests.outcome == 'failure'
- run: |
- echo "โ Backend tests failed"
- exit 1
-
- frontend-tests:
- name: Frontend Tests
- needs: [ migration-check ]
- if: needs.migration-check.result == 'success' || needs.migration-check.result == 'skipped'
- runs-on: ubuntu-latest
-
- permissions:
- contents: read
- checks: write
- pull-requests: write
-
- steps:
- - name: Checkout Repository
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
-
- - name: Set Up Node.js
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
- with:
- node-version: '24'
- cache: 'npm'
- cache-dependency-path: booklore-ui/package-lock.json
-
- - name: Install Frontend Dependencies
- working-directory: ./booklore-ui
- run: npm ci
-
- - name: Audit Frontend Dependencies
- working-directory: ./booklore-ui
- run: npm audit --audit-level=high
-
- - name: Validate Dependency Tree
- working-directory: ./booklore-ui
- run: npm ls --depth=0
-
-
- - name: Execute Frontend Tests
- id: frontend_tests
- working-directory: ./booklore-ui
- run: |
- echo "Running frontend tests..."
- npx ng test
- continue-on-error: true
-
- - name: Publish Frontend Test Results
- uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
- if: always()
- with:
- files: booklore-ui/test-results/vitest-results.xml
- check_name: Frontend Test Results
-
- - name: Upload Frontend Test Reports
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
- if: always()
- with:
- name: frontend-test-reports
- path: |
- booklore-ui/test-results/vitest-results.xml
- retention-days: 30
-
- - name: Validate Frontend Test Results
- if: steps.frontend_tests.outcome == 'failure'
- run: |
- echo "โ Frontend tests failed"
- exit 1
-
- build-and-release:
- needs: [ backend-tests, frontend-tests ]
- if: needs.backend-tests.result == 'success' && needs.frontend-tests.result == 'success'
- runs-on: ubuntu-latest
- permissions:
- contents: write
- packages: write
- pull-requests: read
-
- steps:
- - name: Checkout Repository
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- with:
- fetch-depth: 0
-
- - name: Authenticate to Docker Hub
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
- with:
- username: ${{ secrets.DOCKER_USERNAME }}
- password: ${{ secrets.DOCKER_PASSWORD }}
-
- - name: Authenticate to GitHub Container Registry
- uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
- with:
- registry: ghcr.io
- username: ${{ github.actor }}
- password: ${{ github.token }}
-
- - name: Set Up QEMU for Multi-Architecture Builds
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
-
- - name: Set Up Docker Buildx
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
-
- - name: Retrieve Latest Master Version Tag
- id: get_version
- run: |
- latest_tag=$(git tag --list "v*" --sort=-v:refname | head -n 1)
- latest_tag=${latest_tag:-"v0.0.0"}
- echo "latest_tag=$latest_tag" >> $GITHUB_ENV
- echo "Latest master tag: $latest_tag"
-
- - name: Determine Version Bump
- id: determine_bump
- env:
- GH_TOKEN: ${{ github.token }}
- run: |
- echo "Determining version bump from PR labels..."
-
- # Extract PR number from merge commit
- pr_number=$(git log -1 --pretty=%B | grep -oE 'Merge pull request #[0-9]+' | grep -oE '[0-9]+') || true
- if [ -z "$pr_number" ]; then
- pr_number=$(gh pr list --state merged --base master --limit 1 --json number --jq '.[0].number')
- fi
- echo "PR number: $pr_number"
-
- labels=$(gh pr view "$pr_number" --json labels --jq '.labels[].name' || echo "")
- echo "PR labels: $labels"
-
- if echo "$labels" | grep -q 'bump:major'; then
- bump="major"
- elif echo "$labels" | grep -q 'bump:minor'; then
- bump="minor"
- elif echo "$labels" | grep -q 'bump:patch'; then
- bump="patch"
- else
- last_commit_msg=$(git log -1 --pretty=%B)
- if echo "$last_commit_msg" | grep -iq '#major'; then
- bump="major"
- elif echo "$last_commit_msg" | grep -iq '#minor'; then
- bump="minor"
- elif echo "$last_commit_msg" | grep -iq '#patch'; then
- bump="patch"
- else
- bump="patch"
- fi
- fi
-
- # Calculate next version
- semver=$(echo ${{ env.latest_tag }} | sed 's/^v//')
- major=$(echo $semver | cut -d. -f1)
- minor=$(echo $semver | cut -d. -f2)
- patch=$(echo $semver | cut -d. -f3)
-
- case "$bump" in
- major) major=$((major+1)); minor=0; patch=0 ;;
- minor) minor=$((minor+1)); patch=0 ;;
- patch) patch=$((patch+1)) ;;
- esac
-
- next_version="v${major}.${minor}.${patch}"
- echo "Version bump type: $bump"
- echo "Next version: $next_version"
-
- echo "bump=$bump" >> $GITHUB_ENV
- echo "new_tag=$next_version" >> $GITHUB_ENV
-
- # ----------------------------------------
- # Native Angular build
- # ----------------------------------------
- - name: Set Up Node.js
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
- with:
- node-version: '24'
- cache: 'npm'
- cache-dependency-path: booklore-ui/package-lock.json
-
- - name: Install Frontend Dependencies
- working-directory: ./booklore-ui
- run: npm ci
-
- - name: Audit Frontend Dependencies
- working-directory: ./booklore-ui
- run: npm audit --audit-level=high
-
- - name: Validate Dependency Tree
- working-directory: ./booklore-ui
- run: npm ls --depth=0
-
-
- - name: Build Angular App
- working-directory: ./booklore-ui
- run: npx ng build --configuration=production
-
- # ----------------------------------------
- # Native Gradle build
- # ----------------------------------------
- - name: Set Up JDK 25
- uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
- with:
- java-version: '25'
- distribution: 'temurin'
- cache: gradle
-
- - name: Copy Angular Dist to Spring Boot Resources
- run: cp -r booklore-ui/dist/booklore/browser/. booklore-api/src/main/resources/static/
-
- - name: Inject Version into application.yaml
- env:
- APP_VERSION: ${{ env.new_tag }}
- run: |
- sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.52.2/yq_linux_amd64
- sudo chmod +x /usr/local/bin/yq
- yq eval '.app.version = strenv(APP_VERSION)' -i booklore-api/src/main/resources/application.yaml
-
- - name: Build Spring Boot JAR
- working-directory: ./booklore-api
- run: ./gradlew clean build -x test --no-daemon --parallel --build-cache
-
- # ----------------------------------------
- # Docker build & push
- # ----------------------------------------
- - name: Build and push Docker image
- uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
- with:
- context: .
- file: Dockerfile.ci
- platforms: linux/amd64,linux/arm64
- push: true
- tags: |
- booklore/booklore:${{ env.new_tag }}
- booklore/booklore:latest
- ghcr.io/booklore-app/booklore:${{ env.new_tag }}
- ghcr.io/booklore-app/booklore:latest
- build-args: |
- APP_VERSION=${{ env.new_tag }}
- APP_REVISION=${{ github.sha }}
- cache-from: |
- type=gha
- type=registry,ref=ghcr.io/booklore-app/booklore:buildcache
- cache-to: |
- type=gha,mode=max
- type=registry,ref=ghcr.io/booklore-app/booklore:buildcache,mode=max
-
- - name: Update GitHub Release Draft
- uses: release-drafter/release-drafter@6db134d15f3909ccc9eefd369f02bd1e9cffdf97 # v6
- with:
- tag: ${{ env.new_tag }}
- name: "Release ${{ env.new_tag }}"
- env:
- GITHUB_TOKEN: ${{ github.token }}
-
- - name: Publish GitHub Draft Release
- env:
- GITHUB_TOKEN: ${{ github.token }}
- run: |
- gh release edit ${{ env.new_tag }} --draft=true
diff --git a/.github/workflows/migrations-check.yml b/.github/workflows/migrations-check.yml
index 2e2ba4954..f4a8697a5 100644
--- a/.github/workflows/migrations-check.yml
+++ b/.github/workflows/migrations-check.yml
@@ -3,12 +3,16 @@ name: Reusable - Flyway Migration Check
on:
workflow_call:
inputs:
+ checkout_ref:
+ description: "The ref to check out before diffing migrations"
+ required: true
+ type: string
base_ref:
- description: 'The base ref for comparison'
+ description: "The base ref for comparison"
required: true
type: string
head_ref:
- description: 'The head ref for comparison'
+ description: "The head ref for comparison"
required: true
type: string
outputs:
@@ -21,28 +25,45 @@ jobs:
name: Check for DB Migrations
runs-on: ubuntu-latest
outputs:
+ base_ref: ${{ steps.normalize_refs.outputs.base_ref }}
+ head_ref: ${{ steps.normalize_refs.outputs.head_ref }}
has_migrations: ${{ steps.check_migrations.outputs.has_migrations }}
steps:
- name: Checkout Repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 0
+ ref: ${{ inputs.checkout_ref }}
+
+ - name: Normalize Diff Refs
+ id: normalize_refs
+ run: |
+ base_ref="${{ inputs.base_ref }}"
+ head_ref="${{ inputs.head_ref }}"
+
+ if [ "$base_ref" = "0000000000000000000000000000000000000000" ]; then
+ echo "base_ref is the all-zero sentinel; callers must supply a real comparison base for migration checks." >&2
+ exit 1
+ fi
+
+ echo "base_ref=$base_ref" >> "$GITHUB_OUTPUT"
+ echo "head_ref=$head_ref" >> "$GITHUB_OUTPUT"
- name: Detect Flyway Migration Changes
id: check_migrations
run: |
- echo "Comparing ${{ inputs.base_ref }}...${{ inputs.head_ref }}"
- if git diff --name-only ${{ inputs.base_ref }}...${{ inputs.head_ref }} | grep -q "booklore-api/src/main/resources/db/migration/V.*.sql"; then
+ echo "Comparing ${{ steps.normalize_refs.outputs.base_ref }}...${{ steps.normalize_refs.outputs.head_ref }}"
+ if git diff --name-only "${{ steps.normalize_refs.outputs.base_ref }}...${{ steps.normalize_refs.outputs.head_ref }}" | grep -Eq "^booklore-api/src/main/resources/db/migration/V.*\\.sql$"; then
echo "Migration file changes detected. Proceeding with migration preview."
- echo "has_migrations=true" >> $GITHUB_OUTPUT
+ echo "has_migrations=true" >> "$GITHUB_OUTPUT"
else
echo "No migration file changes detected. Skipping migration preview."
- echo "has_migrations=false" >> $GITHUB_OUTPUT
+ echo "has_migrations=false" >> "$GITHUB_OUTPUT"
fi
flyway-migration-preview:
name: Flyway DB Migration Preview
- needs: [ check-for-migrations ]
+ needs: [check-for-migrations]
if: needs.check-for-migrations.outputs.has_migrations == 'true'
runs-on: ubuntu-latest
services:
@@ -63,15 +84,15 @@ jobs:
- name: Checkout Base Branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
- ref: ${{ inputs.base_ref }}
+ ref: ${{ needs.check-for-migrations.outputs.base_ref }}
fetch-depth: 0
- name: Apply Migrations from Base Branch
run: |
- echo "Applying migrations from base ref (${{ inputs.base_ref }})..."
+ echo "Applying migrations from base ref (${{ needs.check-for-migrations.outputs.base_ref }})..."
docker run --network host \
-v ${{ github.workspace }}:/flyway/sql \
- flyway/flyway:11.19.0-alpine \
+ flyway/flyway:12.1.0 \
-url=jdbc:mariadb://127.0.0.1:3306/booklore_test \
-user=root -password=root \
-locations=filesystem:/flyway/sql/booklore-api/src/main/resources/db/migration \
@@ -80,15 +101,15 @@ jobs:
- name: Checkout Head Branch
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
- ref: ${{ inputs.head_ref }}
+ ref: ${{ needs.check-for-migrations.outputs.head_ref }}
fetch-depth: 0
- name: Apply Migrations from Head Branch
run: |
- echo "Applying new migrations from head ref (${{ inputs.head_ref }})..."
+ echo "Applying new migrations from head ref (${{ needs.check-for-migrations.outputs.head_ref }})..."
docker run --network host \
-v ${{ github.workspace }}:/flyway/sql \
- flyway/flyway:11.19.0-alpine \
+ flyway/flyway:12.1.0 \
-url=jdbc:mariadb://127.0.0.1:3306/booklore_test \
-user=root -password=root \
-locations=filesystem:/flyway/sql/booklore-api/src/main/resources/db/migration \
diff --git a/.github/workflows/preview-image.yml b/.github/workflows/preview-image.yml
new file mode 100644
index 000000000..549eb5668
--- /dev/null
+++ b/.github/workflows/preview-image.yml
@@ -0,0 +1,82 @@
+name: Preview - Build Image
+
+on:
+ workflow_dispatch:
+ inputs:
+ ref:
+ description: 'Git ref to preview build'
+ required: true
+ type: string
+ pr_number:
+ description: 'Optional PR number for a pr-- tag'
+ required: false
+ default: ''
+ type: string
+
+jobs:
+ build-and-push:
+ name: Build and Push Preview Image
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: read
+ packages: write
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
+ with:
+ fetch-depth: 0
+ ref: ${{ inputs.ref }}
+
+ - name: Generate Preview Tag
+ env:
+ PR_NUMBER: ${{ inputs.pr_number }}
+ run: |
+ short_sha=$(git rev-parse --short HEAD)
+
+ if [ -n "$PR_NUMBER" ]; then
+ case "$PR_NUMBER" in
+ (*[!0-9]*)
+ echo "Invalid PR number: $PR_NUMBER"
+ exit 1
+ ;;
+ esac
+ preview_tag="pr-${PR_NUMBER}-${short_sha}"
+ else
+ preview_tag="preview-${short_sha}"
+ fi
+
+ echo "preview_tag=$preview_tag" >> "$GITHUB_ENV"
+ echo "commit_sha=$(git rev-parse HEAD)" >> "$GITHUB_ENV"
+ echo "Preview tag: $preview_tag"
+
+ - name: Set Up QEMU for Multi-Arch Builds
+ uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
+
+ - name: Set Up Docker Buildx
+ uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+
+ - name: Authenticate to GitHub Container Registry
+ uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ github.token }}
+
+ - name: Build and push Preview image
+ uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
+ with:
+ context: .
+ file: Dockerfile
+ platforms: linux/amd64,linux/arm64
+ push: true
+ tags: |
+ ghcr.io/grimmory-tools/grimmory:${{ env.preview_tag }}
+ build-args: |
+ APP_VERSION=${{ env.preview_tag }}
+ APP_REVISION=${{ env.commit_sha }}
+ cache-from: |
+ type=gha
+ type=registry,ref=ghcr.io/grimmory-tools/grimmory:buildcache
+ cache-to: type=gha,mode=max
diff --git a/.github/workflows/publish-nightly.yml b/.github/workflows/publish-nightly.yml
new file mode 100644
index 000000000..65e3feccf
--- /dev/null
+++ b/.github/workflows/publish-nightly.yml
@@ -0,0 +1,99 @@
+name: Nightly - Build and Publish
+
+on:
+ schedule:
+ - cron: '0 4 * * *'
+ workflow_dispatch:
+
+jobs:
+ resolve_ref:
+ name: Resolve Nightly Ref
+ runs-on: ubuntu-latest
+
+ outputs:
+ commit_sha: ${{ steps.resolve.outputs.commit_sha }}
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
+ with:
+ fetch-depth: 0
+ ref: develop
+
+ - name: Record Resolved Commit
+ id: resolve
+ run: |
+ echo "commit_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
+
+ test-suite:
+ name: Test Suite
+ needs: [resolve_ref]
+ uses: ./.github/workflows/test-suite.yml
+ with:
+ checkout_ref: ${{ needs.resolve_ref.outputs.commit_sha }}
+
+ build-and-push:
+ name: Build and Push Nightly Image
+ needs: [resolve_ref, test-suite]
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: read
+ packages: write
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
+ with:
+ fetch-depth: 0
+ ref: ${{ needs.resolve_ref.outputs.commit_sha }}
+
+ - name: Generate Nightly Tag
+ run: |
+ short_sha=$(git rev-parse --short HEAD)
+ build_date=$(date -u +%Y%m%d)
+ nightly_tag="nightly-${build_date}-${short_sha}"
+ echo "nightly_tag=$nightly_tag" >> "$GITHUB_ENV"
+ echo "commit_sha=$(git rev-parse HEAD)" >> "$GITHUB_ENV"
+ echo "Nightly tag: $nightly_tag"
+
+ - name: Set Up QEMU for Multi-Arch Builds
+ uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
+
+ - name: Set Up Docker Buildx
+ uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+
+ - name: Authenticate to Docker Hub
+ uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+
+ - name: Authenticate to GitHub Container Registry
+ uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ github.token }}
+
+ - name: Build and push Docker image
+ uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
+ with:
+ context: .
+ file: Dockerfile
+ platforms: linux/amd64,linux/arm64
+ push: true
+ tags: |
+ grimmory/grimmory:${{ env.nightly_tag }}
+ grimmory/grimmory:nightly
+ ghcr.io/grimmory-tools/grimmory:${{ env.nightly_tag }}
+ ghcr.io/grimmory-tools/grimmory:nightly
+ build-args: |
+ APP_VERSION=${{ env.nightly_tag }}
+ APP_REVISION=${{ env.commit_sha }}
+ cache-from: |
+ type=gha
+ type=registry,ref=ghcr.io/grimmory-tools/grimmory:buildcache
+ cache-to: |
+ type=gha,mode=max
+ type=registry,ref=ghcr.io/grimmory-tools/grimmory:buildcache,mode=max
diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml
new file mode 100644
index 000000000..ac8bf51c9
--- /dev/null
+++ b/.github/workflows/publish-release.yml
@@ -0,0 +1,76 @@
+name: Release - Publish Stable Images
+
+on:
+ push:
+ tags:
+ - 'v*'
+
+jobs:
+ build-and-release:
+ name: Build, Publish, and Finalize Stable Release
+ if: ${{ github.ref_name != 'v2.2.1' }}
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: write
+ packages: write
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
+ with:
+ fetch-depth: 0
+ ref: ${{ github.ref }}
+
+ - name: Record Release Tag and Commit
+ run: |
+ echo "release_tag=${GITHUB_REF_NAME}" >> "$GITHUB_ENV"
+ echo "commit_sha=$(git rev-parse HEAD)" >> "$GITHUB_ENV"
+ echo "Stable release tag: ${GITHUB_REF_NAME}"
+
+ - name: Set Up QEMU for Multi-Arch Builds
+ uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3
+
+ - name: Set Up Docker Buildx
+ uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
+
+ - name: Authenticate to Docker Hub
+ uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ with:
+ username: ${{ secrets.DOCKER_USERNAME }}
+ password: ${{ secrets.DOCKER_PASSWORD }}
+
+ - name: Authenticate to GitHub Container Registry
+ uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
+ with:
+ registry: ghcr.io
+ username: ${{ github.actor }}
+ password: ${{ github.token }}
+
+ - name: Build and push Stable image
+ uses: docker/build-push-action@10e90e3645eae34f1e60eeb005ba3a3d33f178e8 # v6
+ with:
+ context: .
+ file: Dockerfile
+ platforms: linux/amd64,linux/arm64
+ push: true
+ tags: |
+ grimmory/grimmory:${{ env.release_tag }}
+ grimmory/grimmory:latest
+ ghcr.io/grimmory-tools/grimmory:${{ env.release_tag }}
+ ghcr.io/grimmory-tools/grimmory:latest
+ build-args: |
+ APP_VERSION=${{ env.release_tag }}
+ APP_REVISION=${{ env.commit_sha }}
+ cache-from: |
+ type=gha
+ type=registry,ref=ghcr.io/grimmory-tools/grimmory:buildcache
+ cache-to: |
+ type=gha,mode=max
+ type=registry,ref=ghcr.io/grimmory-tools/grimmory:buildcache,mode=max
+
+ - name: Publish Draft GitHub Release
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
+ run: |
+ gh release edit "${{ env.release_tag }}" --draft=false
diff --git a/.github/workflows/release-main.yml b/.github/workflows/release-main.yml
new file mode 100644
index 000000000..725896f95
--- /dev/null
+++ b/.github/workflows/release-main.yml
@@ -0,0 +1,72 @@
+name: Release - Semantic Stable
+
+on:
+ push:
+ branches:
+ - main
+
+concurrency:
+ group: release-main
+ cancel-in-progress: false
+
+jobs:
+ migration-check:
+ name: Flyway Migration Check
+ if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
+ uses: ./.github/workflows/migrations-check.yml
+ with:
+ base_ref: ${{ github.event.before }}
+ head_ref: ${{ github.sha }}
+ checkout_ref: ${{ github.sha }}
+
+ test-suite:
+ name: Test Suite
+ if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
+ needs: [migration-check]
+ uses: ./.github/workflows/test-suite.yml
+ with:
+ checkout_ref: ${{ github.sha }}
+
+ semantic-release:
+ name: Compute Release, Update Changelog, and Draft GitHub Release
+ if: ${{ !contains(github.event.head_commit.message, '[skip ci]') }}
+ needs: [migration-check, test-suite]
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: write
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
+ with:
+ fetch-depth: 0
+ persist-credentials: false
+
+ - name: Set Up Node.js
+ uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
+ with:
+ node-version: '24'
+ cache: 'npm'
+ cache-dependency-path: tools/release/package-lock.json
+
+ - name: Install Release Tooling Dependencies
+ run: npm --prefix tools/release ci
+
+ - name: Configure Release Bot Git Identity
+ env:
+ RELEASE_GH_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN != '' && secrets.RELEASE_BOT_TOKEN || github.token }}
+ run: |
+ git config user.name "github-actions[bot]"
+ git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
+ git remote set-url origin "https://x-access-token:${RELEASE_GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
+
+ - name: Run semantic-release
+ env:
+ GH_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN != '' && secrets.RELEASE_BOT_TOKEN || github.token }}
+ GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN != '' && secrets.RELEASE_BOT_TOKEN || github.token }}
+ GIT_AUTHOR_NAME: github-actions[bot]
+ GIT_AUTHOR_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
+ GIT_COMMITTER_NAME: github-actions[bot]
+ GIT_COMMITTER_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com
+ run: npx --prefix tools/release semantic-release --extends ./tools/release/release.config.cjs
diff --git a/.github/workflows/release-preview.yml b/.github/workflows/release-preview.yml
new file mode 100644
index 000000000..bd258e635
--- /dev/null
+++ b/.github/workflows/release-preview.yml
@@ -0,0 +1,59 @@
+name: Release - Dry Run Preview
+
+on:
+ workflow_dispatch:
+ inputs:
+ ref:
+ description: 'Ref or commit to preview as the next stable release candidate'
+ required: false
+ default: main
+ type: string
+
+jobs:
+ preview:
+ name: Preview Next Stable Release
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: read
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
+ with:
+ fetch-depth: 0
+ ref: ${{ inputs.ref }}
+
+ - name: Confirm Preview Ref Is Contained By Main
+ run: |
+ git fetch origin main --tags --force
+ if ! git merge-base --is-ancestor HEAD origin/main; then
+ echo "Selected ref is not contained by origin/main"
+ exit 1
+ fi
+ git checkout -B main "$(git rev-parse HEAD)"
+ - name: Set Up Node.js
+ uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
+ with:
+ node-version: '24'
+ cache: 'npm'
+ cache-dependency-path: tools/release/package-lock.json
+
+ - name: Install Release Tooling Dependencies
+ run: npm --prefix tools/release ci
+
+ - name: Run semantic-release Dry Run
+ env:
+ GH_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN != '' && secrets.RELEASE_BOT_TOKEN || github.token }}
+ GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_TOKEN != '' && secrets.RELEASE_BOT_TOKEN || github.token }}
+ run: |
+ npx --prefix tools/release semantic-release \
+ --dry-run \
+ --extends ./tools/release/release.config.cjs | tee semantic-release-preview.log
+
+ - name: Upload Preview Output
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
+ with:
+ name: semantic-release-preview
+ path: semantic-release-preview.log
+ retention-days: 14
diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yml
new file mode 100644
index 000000000..2183e2141
--- /dev/null
+++ b/.github/workflows/semantic-pr-title.yml
@@ -0,0 +1,32 @@
+name: CI - Semantic PR Title
+
+on:
+ pull_request:
+ branches:
+ - develop
+ - main
+ types:
+ - opened
+ - edited
+ - reopened
+ - synchronize
+
+jobs:
+ validate-pr-title:
+ name: Validate PR Title
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: read
+
+ steps:
+ - name: Check Conventional PR Title
+ env:
+ PR_TITLE: ${{ github.event.pull_request.title }}
+ run: |
+ regex='^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([A-Za-z0-9._/-]+\))?(!)?: .+$'
+ if ! printf '%s\n' "$PR_TITLE" | grep -Eq "$regex"; then
+ echo "PR titles for develop/main must use Conventional Commit format." >&2
+ echo "Example: refactor(release): adopt semantic-release for stable builds" >&2
+ exit 1
+ fi
diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml
new file mode 100644
index 000000000..d74da7279
--- /dev/null
+++ b/.github/workflows/test-suite.yml
@@ -0,0 +1,127 @@
+name: Reusable - Test Suite
+
+on:
+ workflow_call:
+ inputs:
+ checkout_ref:
+ description: 'The ref to check out before running tests'
+ required: true
+ type: string
+
+jobs:
+ backend-tests:
+ name: Backend Tests
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: read
+ checks: write
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
+ with:
+ fetch-depth: 0
+ ref: ${{ inputs.checkout_ref }}
+
+ - name: Set Up JDK 25
+ uses: actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654 # v5
+ with:
+ java-version: '25'
+ distribution: 'temurin'
+ cache: gradle
+
+ - name: Execute Backend Tests
+ id: backend_tests
+ working-directory: ./booklore-api
+ run: |
+ echo "Running backend tests..."
+ ./gradlew test --no-daemon --parallel --build-cache
+ continue-on-error: true
+
+ - name: Publish Backend Test Results
+ uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
+ if: always()
+ with:
+ files: booklore-api/build/test-results/**/*.xml
+ check_name: Backend Test Results
+
+ - name: Upload Backend Test Reports
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
+ if: always()
+ with:
+ name: backend-test-reports
+ path: |
+ booklore-api/build/reports/tests/
+ booklore-api/build/test-results/
+ retention-days: 30
+
+ - name: Validate Backend Test Results
+ if: steps.backend_tests.outcome == 'failure'
+ run: |
+ echo "โ Backend tests failed"
+ exit 1
+
+ frontend-tests:
+ name: Frontend Tests
+ runs-on: ubuntu-latest
+
+ permissions:
+ contents: read
+ checks: write
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
+ with:
+ fetch-depth: 0
+ ref: ${{ inputs.checkout_ref }}
+
+ - name: Set Up Node.js
+ uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
+ with:
+ node-version: '24'
+ cache: 'npm'
+ cache-dependency-path: booklore-ui/package-lock.json
+
+ - name: Install Frontend Dependencies
+ working-directory: ./booklore-ui
+ run: npm ci
+
+ - name: Audit Frontend Dependencies
+ working-directory: ./booklore-ui
+ run: npm audit --audit-level=critical
+
+ - name: Validate Dependency Tree
+ working-directory: ./booklore-ui
+ run: npm ls --depth=0
+
+ - name: Execute Frontend Tests
+ id: frontend_tests
+ working-directory: ./booklore-ui
+ run: |
+ echo "Running frontend tests..."
+ npx ng test
+ continue-on-error: true
+
+ - name: Publish Frontend Test Results
+ uses: EnricoMi/publish-unit-test-result-action@c950f6fb443cb5af20a377fd0dfaa78838901040 # v2
+ if: always()
+ with:
+ files: booklore-ui/test-results/vitest-results.xml
+ check_name: Frontend Test Results
+
+ - name: Upload Frontend Test Reports
+ uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
+ if: always()
+ with:
+ name: frontend-test-reports
+ path: |
+ booklore-ui/test-results/vitest-results.xml
+ retention-days: 30
+
+ - name: Validate Frontend Test Results
+ if: steps.frontend_tests.outcome == 'failure'
+ run: |
+ echo "โ Frontend tests failed"
+ exit 1
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 000000000..d59f25314
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,5 @@
+# Changelog
+
+All notable Grimmory releases are tracked here.
+
+This file is maintained by semantic-release.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 2ad06fe11..c79556ea1 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1,10 +1,10 @@
-# Contributing to Booklore
+# Contributing to Grimmory
-Thanks for your interest in contributing to Booklore! Whether you're fixing bugs, adding features, improving documentation, or asking questions, every contribution helps.
+Thanks for your interest in contributing to Grimmory! Whether you're fixing bugs, adding features, improving documentation, or asking questions, every contribution helps.
-## What is Booklore?
+## What is Grimmory?
-**Booklore** is a self-hostable digital library platform for managing and reading books and comics.
+**Grimmory** is a self-hostable digital library platform for managing and reading books and comics. It is the community-maintained successor to Booklore.
**Tech Stack:**
@@ -34,7 +34,7 @@ Thanks for your interest in contributing to Booklore! Whether you're fixing bugs
## Before You Start
-> **Issue first, PR second.** Every pull request must be linked to an approved issue. If you want to work on something, [open an issue](https://github.com/booklore-app/booklore/issues/new) (or find an existing one) and wait for a maintainer to approve it before writing code. PRs submitted without a linked, approved issue will be closed.
+> **Issue first, PR second.** Every pull request must be linked to an approved issue. If you want to work on something, [open an issue](https://github.com/grimmory-tools/grimmory/issues/new) (or find an existing one) and wait for a maintainer to approve it before writing code. PRs submitted without a linked, approved issue will be closed.
This protects both your time and ours. It ensures that the work is actually wanted and that you're heading in the right direction before you invest effort.
@@ -50,8 +50,8 @@ This protects both your time and ours. It ensures that the work is actually want
Not sure where to begin? Look for issues labeled:
-- [`good first issue`](https://github.com/booklore-app/booklore/labels/good%20first%20issue) - small, well-scoped tasks ideal for newcomers
-- [`help wanted`](https://github.com/booklore-app/booklore/labels/help%20wanted) - tasks where maintainers would appreciate a hand
+- [`good first issue`](https://github.com/grimmory-tools/grimmory/labels/good%20first%20issue) - small, well-scoped tasks ideal for newcomers
+- [`help wanted`](https://github.com/grimmory-tools/grimmory/labels/help%20wanted) - tasks where maintainers would appreciate a hand
---
@@ -59,12 +59,12 @@ Not sure where to begin? Look for issues labeled:
### Fork and Clone
-First, [fork the repository](https://github.com/booklore-app/booklore/fork) on GitHub, then clone your fork locally:
+First, [fork the repository](https://github.com/grimmory-tools/grimmory/fork) on GitHub, then clone your fork locally:
```bash
-git clone https://github.com//booklore.git
-cd booklore
-git remote add upstream https://github.com/booklore-app/booklore.git
+git clone https://github.com//grimmory.git
+cd grimmory
+git remote add upstream https://github.com/grimmory-tools/grimmory.git
```
### Keep Your Fork in Sync
@@ -78,7 +78,7 @@ git merge upstream/develop
git push origin develop
```
-> **Note:** All work should be based on the `develop` branch, not `main`.
+> **Note:** Feature work targets `develop`. `main` is reserved for stable releases and release tags.
---
@@ -87,9 +87,11 @@ git push origin develop
### Project Structure
```
-booklore/
+grimmory/
โโโ booklore-ui/ # Angular frontend (TypeScript, PrimeNG)
โโโ booklore-api/ # Spring Boot backend (Java 25, Gradle)
+โโโ deploy/ # Compose, Helm, and Podman deployment examples
+โโโ packaging/docker/ # Container runtime assets used by the Docker build
โโโ dev.docker-compose.yml # Development Docker stack
โโโ assets/ # Shared assets (logos, icons)
โโโ local/ # Local development helpers
@@ -108,7 +110,7 @@ This starts:
| Service | URL / Port |
|------------|-----------------------|
| Frontend | http://localhost:4200 |
-| Backend | http://localhost:8080 |
+| Backend | http://localhost:6060 |
| MariaDB | localhost:3366 |
| Debug port | localhost:5005 |
@@ -247,6 +249,14 @@ feat(auth)!: migrate to OAuth 2.1
BREAKING CHANGE: OAuth 2.0 is no longer supported
```
+PR titles targeting `develop` or `main` must use the same format. Feature work is squash-merged into `develop`, and stable releases are computed from the resulting commit history on `main`.
+
+Release impact is derived from commit type:
+
+- `feat` => minor release
+- `fix`, `perf`, `refactor` => patch release
+- `docs`, `ci`, `build`, `chore`, `test`, `style` => changelog-only unless paired with a release-triggering commit
+
### Workflow
1. Create a branch from `develop`
@@ -256,6 +266,8 @@ BREAKING CHANGE: OAuth 2.0 is no longer supported
5. Run the linter and fix any issues
6. Push to your fork and open a PR targeting `develop`
+Maintainers promote cleaned `develop` history to `main` for stable releases. Do not expect a second squash step from `develop` to `main`; release automation depends on preserved conventional commit history.
+
---
## Submitting a Pull Request
@@ -274,7 +286,7 @@ Before opening your PR:
- [ ] PR contains a single logical change (one bug fix OR one feature)
- [ ] No unrelated refactors, style changes, or "improvements" are bundled in
- [ ] **PR is reasonably sized.** PRs with 1000+ changed lines will be closed without review. Break large changes into small, focused PRs.
-- [ ] **For user-facing features:** submit a companion docs PR at [booklore-docs](https://github.com/booklore-app/booklore-docs)
+- [ ] **For user-facing features:** include the required docs updates in this repo or in the active Grimmory docs surface
> When you open your PR on GitHub, a **PR template** will appear. Fill it out completely, including test output and screenshots.
@@ -326,13 +338,13 @@ We've seen a sharp increase in AI-generated PRs where the contributor clearly ne
## Reporting Bugs
-1. **Search [existing issues](https://github.com/booklore-app/booklore/issues)** to avoid duplicates.
+1. **Search [existing issues](https://github.com/grimmory-tools/grimmory/issues)** to avoid duplicates.
2. **Open a new issue** with the `bug` label including:
- Clear, descriptive title (e.g., "Book import fails with PDF files over 100MB")
- Steps to reproduce
- Expected vs. actual behavior
- Screenshots or error logs (if applicable)
- - Environment details (OS, browser, Booklore version)
+ - Environment details (OS, browser, Grimmory version)
**Example:**
@@ -348,7 +360,7 @@ Steps to Reproduce:
Expected: Title should persist after refresh
Actual: Title reverts to original value
-Environment: Chrome 120, macOS 14.2, Booklore 1.2.0
+Environment: Chrome 120, macOS 14.2, Grimmory 1.2.0
```
---
@@ -356,7 +368,7 @@ Environment: Chrome 120, macOS 14.2, Booklore 1.2.0
## Community & Support
- **Discord:** [Join the server](https://discord.gg/Ee5hd458Uz) for questions and discussion
-- **GitHub Issues:** [Report bugs or request features](https://github.com/booklore-app/booklore/issues)
+- **GitHub Issues:** [Report bugs or request features](https://github.com/grimmory-tools/grimmory/issues)
---
@@ -381,8 +393,8 @@ Instances of unacceptable behavior may result in temporary or permanent ban from
## License
-Booklore is licensed under the [AGPL-3.0 License](./LICENSE). By contributing, you agree that your contributions will be licensed under the same terms.
+Grimmory is licensed under the [AGPL-3.0 License](./LICENSE). By contributing, you agree that your contributions will be licensed under the same terms.
---
-Thank you for being part of the Booklore community!
+Thank you for being part of the Grimmory community!
diff --git a/Dockerfile b/Dockerfile
index d5e2eba59..f8faff78e 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,74 +1,71 @@
-# Stage 1: Build the Angular app
-FROM node:24-alpine AS angular-build
+FROM node:24-alpine AS frontend-build
-WORKDIR /angular-app
+WORKDIR /workspace/booklore-ui
-COPY ./booklore-ui/package.json ./booklore-ui/package-lock.json ./
+COPY booklore-ui/package.json booklore-ui/package-lock.json ./
RUN --mount=type=cache,target=/root/.npm \
- npm config set registry https://registry.npmjs.org/ \
- && npm ci --force
-
-COPY ./booklore-ui /angular-app/
+ npm ci --no-audit --no-fund
+COPY booklore-ui/ ./
RUN npm run build --configuration=production
-# Stage 2: Build the Spring Boot app with Gradle
-FROM gradle:9.3.1-jdk25-alpine AS springboot-build
+FROM gradle:9.3.1-jdk25-alpine AS backend-build
-WORKDIR /springboot-app
+WORKDIR /workspace/booklore-api
-# Copy only build files first to cache dependencies
-COPY ./booklore-api/build.gradle ./booklore-api/settings.gradle /springboot-app/
-
-# Download dependencies (cached layer)
-RUN --mount=type=cache,target=/home/gradle/.gradle \
- gradle dependencies --no-daemon
-
-COPY ./booklore-api/src /springboot-app/src
-
-# Copy Angular dist into Spring Boot static resources so it's embedded in the JAR
-COPY --from=angular-build /angular-app/dist/booklore/browser /springboot-app/src/main/resources/static
-
-# Inject version into application.yaml using yq
-ARG APP_VERSION
-RUN apk add --no-cache yq && \
- yq eval '.app.version = strenv(APP_VERSION)' -i /springboot-app/src/main/resources/application.yaml
+COPY booklore-api/gradlew booklore-api/gradlew.bat booklore-api/build.gradle booklore-api/settings.gradle ./
+COPY booklore-api/gradle ./gradle
+RUN chmod +x ./gradlew
RUN --mount=type=cache,target=/home/gradle/.gradle \
- gradle clean build -x test --no-daemon --parallel
+ ./gradlew --no-daemon dependencies
+
+COPY booklore-api/ ./
+COPY --from=frontend-build /workspace/booklore-ui/dist/booklore/browser /tmp/frontend-dist
+
+RUN mkdir -p build/resources/main/static && \
+ cp -r /tmp/frontend-dist/. build/resources/main/static/
+
+RUN --mount=type=cache,target=/home/gradle/.gradle \
+ ./gradlew --no-daemon bootJar
+
+RUN set -eux; \
+ jar_path="$(find build/libs -maxdepth 1 -name '*.jar' ! -name '*plain.jar' | head -n 1)"; \
+ cp "$jar_path" /workspace/booklore-api/app.jar
+
+FROM linuxserver/unrar:7.1.10 AS unrar-layer
-# Stage 3: Final image
FROM eclipse-temurin:25-jre-alpine
-ARG APP_VERSION
-ARG APP_REVISION
+ARG APP_VERSION=development
+ARG APP_REVISION=unknown
-# Set OCI labels
-LABEL org.opencontainers.image.title="BookLore" \
- org.opencontainers.image.description="BookLore: A self-hosted, multi-user digital library with smart shelves, auto metadata, Kobo & KOReader sync, BookDrop imports, OPDS support, and a built-in reader for EPUB, PDF, and comics." \
- org.opencontainers.image.source="https://github.com/booklore-app/booklore" \
- org.opencontainers.image.url="https://github.com/booklore-app/booklore" \
- org.opencontainers.image.documentation="https://booklore.org/docs/getting-started" \
+LABEL org.opencontainers.image.title="Grimmory" \
+ org.opencontainers.image.description="Grimmory: a self-hosted, multi-user digital library with smart shelves, auto metadata, Kobo and KOReader sync, BookDrop imports, OPDS support, and a built-in reader for EPUB, PDF, and comics." \
+ org.opencontainers.image.source="https://github.com/grimmory-tools/grimmory" \
+ org.opencontainers.image.url="https://github.com/grimmory-tools/grimmory" \
+ org.opencontainers.image.documentation="https://grimmory.org/docs/getting-started" \
org.opencontainers.image.version=$APP_VERSION \
org.opencontainers.image.revision=$APP_REVISION \
- org.opencontainers.image.licenses="GPL-3.0" \
+ org.opencontainers.image.licenses="AGPL-3.0" \
org.opencontainers.image.base.name="docker.io/library/eclipse-temurin:25-jre-alpine"
ENV JAVA_TOOL_OPTIONS="-XX:+UseG1GC -XX:+UseCompactObjectHeaders -XX:+UseStringDeduplication -XX:MaxRAMPercentage=75.0 -XX:+ExitOnOutOfMemoryError"
+ENV APP_VERSION=${APP_VERSION} \
+ APP_REVISION=${APP_REVISION}
-ARG TARGETARCH
RUN apk update && apk add --no-cache su-exec libstdc++ libgcc && \
mkdir -p /bookdrop
-COPY docker/unrar/unrar-${TARGETARCH} /usr/local/bin/unrar
-RUN chmod 755 /usr/local/bin/unrar
-
-COPY entrypoint.sh /usr/local/bin/entrypoint.sh
+COPY packaging/docker/entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
-COPY --from=springboot-build /springboot-app/build/libs/booklore-api-0.0.1-SNAPSHOT.jar /app/app.jar
+
+COPY --from=unrar-layer /usr/bin/unrar-alpine /usr/local/bin/unrar
+
+COPY --from=backend-build /workspace/booklore-api/app.jar /app/app.jar
ARG BOOKLORE_PORT=6060
EXPOSE ${BOOKLORE_PORT}
-ENTRYPOINT ["entrypoint.sh"]
+ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["java", "-jar", "/app/app.jar"]
diff --git a/Dockerfile.ci b/Dockerfile.ci
deleted file mode 100644
index b4dc8c736..000000000
--- a/Dockerfile.ci
+++ /dev/null
@@ -1,35 +0,0 @@
-# Runtime-only Dockerfile for CI builds.
-# Expects the pre-built JAR at booklore-api/build/libs/booklore-api-0.0.1-SNAPSHOT.jar
-# and entrypoint.sh in the build context.
-FROM eclipse-temurin:25-jre-alpine
-
-ARG APP_VERSION
-ARG APP_REVISION
-
-LABEL org.opencontainers.image.title="BookLore" \
- org.opencontainers.image.description="BookLore: A self-hosted, multi-user digital library with smart shelves, auto metadata, Kobo & KOReader sync, BookDrop imports, OPDS support, and a built-in reader for EPUB, PDF, and comics." \
- org.opencontainers.image.source="https://github.com/booklore-app/booklore" \
- org.opencontainers.image.url="https://github.com/booklore-app/booklore" \
- org.opencontainers.image.documentation="https://booklore.org/docs/getting-started" \
- org.opencontainers.image.version=$APP_VERSION \
- org.opencontainers.image.revision=$APP_REVISION \
- org.opencontainers.image.licenses="GPL-3.0" \
- org.opencontainers.image.base.name="docker.io/library/eclipse-temurin:25-jre-alpine"
-
-ENV JAVA_TOOL_OPTIONS="-XX:+UseG1GC -XX:+UseCompactObjectHeaders -XX:+UseStringDeduplication -XX:MaxRAMPercentage=75.0 -XX:+ExitOnOutOfMemoryError"
-
-ARG TARGETARCH
-RUN apk update && apk add --no-cache su-exec libstdc++ libgcc
-
-COPY docker/unrar/unrar-${TARGETARCH} /usr/local/bin/unrar
-RUN chmod 755 /usr/local/bin/unrar
-
-COPY entrypoint.sh /usr/local/bin/entrypoint.sh
-RUN chmod +x /usr/local/bin/entrypoint.sh
-COPY booklore-api/build/libs/booklore-api-0.0.1-SNAPSHOT.jar /app/app.jar
-
-ARG BOOKLORE_PORT=6060
-EXPOSE ${BOOKLORE_PORT}
-
-ENTRYPOINT ["entrypoint.sh"]
-CMD ["java", "-jar", "/app/app.jar"]
diff --git a/README.md b/README.md
index 751a08e43..cff14f9a9 100644
--- a/README.md
+++ b/README.md
@@ -86,13 +86,26 @@ MYSQL_DATABASE=grimmory
### Step 2: Docker Compose
-Create a `docker-compose.yml`:
+Stable images are published from semantic-release tags on `main` as `vX.Y.Z` plus `latest`. Nightly images are built from `develop` and tagged `nightly`.
+
+> [!NOTE]
+> Upgrading from an existing Booklore container? Keep your current service name, `container_name`, database name/user, ports, and mounted volumes exactly as they are and replace only the `image:` line with `grimmory/grimmory:` or `ghcr.io/grimmory-tools/grimmory:`.
+
+```yaml
+services:
+ booklore:
+ image: grimmory/grimmory:v2.2.1
+```
+
+Create a `docker-compose.yml` or copy and adapt [`deploy/compose/docker-compose.yml`](deploy/compose/docker-compose.yml):
```yaml
services:
grimmory:
image: grimmory/grimmory:latest
- # Alternative: ghcr.io/grimmory-tools/grimmory:latest
+ # Convenience tag:
+ # image: grimmory/grimmory:
+ # Alternative: ghcr.io/grimmory-tools/grimmory:
# To build from source instead: comment out 'image' and uncomment below
# build: .
container_name: grimmory
@@ -149,6 +162,12 @@ docker compose up -d
Open http://localhost:6060, create your admin account, and start building your library.
+Additional deployment examples:
+
+- Docker Compose: [`deploy/compose/docker-compose.yml`](deploy/compose/docker-compose.yml)
+- Helm: [`deploy/helm/grimmory/Chart.yaml`](deploy/helm/grimmory/Chart.yaml)
+- Podman Quadlet: [`deploy/podman/quadlet/README.md`](deploy/podman/quadlet/README.md)
+
---
## BookDrop
diff --git a/booklore-api/src/main/java/org/booklore/service/VersionService.java b/booklore-api/src/main/java/org/booklore/service/VersionService.java
index c305df7fe..761de5998 100644
--- a/booklore-api/src/main/java/org/booklore/service/VersionService.java
+++ b/booklore-api/src/main/java/org/booklore/service/VersionService.java
@@ -21,12 +21,12 @@ public class VersionService {
@Value("${app.version:unknown}")
String appVersion;
- private static final String GITHUB_REPO = "booklore-app/booklore";
+ private static final String GITHUB_REPO = "grimmory-tools/grimmory";
private static final String BASE_URI = "https://api.github.com/repos/" + GITHUB_REPO;
private static final int MAX_RELEASES = 15;
private static final RestClient REST_CLIENT = RestClient.builder()
.defaultHeader("Accept", "application/vnd.github+json")
- .defaultHeader("User-Agent", "BookLore-Version-Checker")
+ .defaultHeader("User-Agent", "Grimmory-Version-Checker")
.build();
private static final ObjectMapper MAPPER = new ObjectMapper();
@@ -87,7 +87,7 @@ public class VersionService {
if (tag == null || !isVersionGreater(tag, currentVersion)) {
continue;
}
- String url = "https://github.com/booklore-app/booklore" + "/releases/tag/" + tag;
+ String url = "https://github.com/grimmory-tools/grimmory" + "/releases/tag/" + tag;
LocalDateTime published = LocalDateTime.parse(release.path("published_at").asText(), DateTimeFormatter.ISO_DATE_TIME);
updates.add(new ReleaseNote(tag, release.path("name").asText(tag), release.path("body").asText(""), url, published));
}
@@ -116,4 +116,4 @@ public class VersionService {
}
return false;
}
-}
\ No newline at end of file
+}
diff --git a/booklore-api/src/main/resources/application.yaml b/booklore-api/src/main/resources/application.yaml
index 6d909e2e1..e33addf81 100644
--- a/booklore-api/src/main/resources/application.yaml
+++ b/booklore-api/src/main/resources/application.yaml
@@ -1,7 +1,7 @@
app:
path-config: '/app/data'
bookdrop-folder: '/bookdrop'
- version: 'development'
+ version: ${APP_VERSION:development}
cors:
# Comma-separated list of allowed CORS origins.
@@ -99,4 +99,4 @@ logging:
org.quartz.simpl.SimpleThreadPool: WARN
org.quartz.simpl.RAMJobStore: WARN
org.hibernate.orm.connections.pooling: WARN
- org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer: ERROR
\ No newline at end of file
+ org.springframework.security.config.annotation.authentication.configuration.InitializeUserDetailsBeanManagerConfigurer: ERROR
diff --git a/booklore-ui/src/app/shared/components/github-support-dialog/github-support-dialog.html b/booklore-ui/src/app/shared/components/github-support-dialog/github-support-dialog.html
index d9a55631f..b4e4b6c77 100644
--- a/booklore-ui/src/app/shared/components/github-support-dialog/github-support-dialog.html
+++ b/booklore-ui/src/app/shared/components/github-support-dialog/github-support-dialog.html
@@ -24,7 +24,7 @@
-
+
{{ t('starTitle') }}
diff --git a/booklore-ui/src/app/shared/layout/component/layout-menu/app.menu.component.ts b/booklore-ui/src/app/shared/layout/component/layout-menu/app.menu.component.ts
index c3119c31b..4a89fed68 100644
--- a/booklore-ui/src/app/shared/layout/component/layout-menu/app.menu.component.ts
+++ b/booklore-ui/src/app/shared/layout/component/layout-menu/app.menu.component.ts
@@ -252,8 +252,8 @@ export class AppMenuComponent implements OnInit {
getVersionUrl(version: string | undefined): string {
if (!version) return '#';
return version.startsWith('v')
- ? `https://github.com/booklore-app/booklore/releases/tag/${version}`
- : `https://github.com/booklore-app/booklore/commit/${version}`;
+ ? `https://github.com/grimmory-tools/grimmory/releases/tag/${version}`
+ : `https://github.com/grimmory-tools/grimmory/commit/${version}`;
}
isSemanticVersion(version: string | undefined): boolean {
diff --git a/deploy/compose/docker-compose.yml b/deploy/compose/docker-compose.yml
new file mode 100644
index 000000000..900872725
--- /dev/null
+++ b/deploy/compose/docker-compose.yml
@@ -0,0 +1,60 @@
+services:
+ # Upgrade path from Booklore:
+ # Keep your existing service name, container_name, database names/users, ports,
+ # and mounted volumes. Replace only the image line(s) with Grimmory tags.
+ grimmory:
+ # Stable release example:
+ image: grimmory/grimmory:v0.38.2
+ # Convenience tag:
+ # image: grimmory/grimmory:latest
+ # Or the GHCR image:
+ # image: ghcr.io/grimmory-tools/grimmory:v0.38.2
+ # The image already embeds its own release version metadata.
+ container_name: grimmory
+ environment:
+ - USER_ID=1000
+ - GROUP_ID=1000
+ - TZ=Etc/UTC
+ - DATABASE_URL=jdbc:mariadb://mariadb:3306/grimmory
+ - DATABASE_USERNAME=grimmory
+ - DATABASE_PASSWORD=your_secure_password
+ - SWAGGER_ENABLED=false
+ - FORCE_DISABLE_OIDC=false
+ # ALLOWED_ORIGINS=
+ # JAVA_TOOL_OPTIONS=-XX:+UseSerialGC -Xmx256m -XX:+UseCompactObjectHeaders -XX:+ExitOnOutOfMemoryError
+ depends_on:
+ mariadb:
+ condition: service_healthy
+ ports:
+ - "6060:6060"
+ volumes:
+ - ./data:/app/data
+ - ./books:/books
+ - ./bookdrop:/bookdrop
+ healthcheck:
+ test: wget -q -O - http://localhost:6060/api/v1/healthcheck
+ interval: 60s
+ retries: 5
+ start_period: 60s
+ timeout: 10s
+ restart: unless-stopped
+
+ mariadb:
+ image: lscr.io/linuxserver/mariadb:11.4.8
+ container_name: mariadb
+ environment:
+ - PUID=1000
+ - PGID=1000
+ - TZ=Etc/UTC
+ - MYSQL_ROOT_PASSWORD=super_secure_password
+ - MYSQL_DATABASE=grimmory
+ - MYSQL_USER=grimmory
+ - MYSQL_PASSWORD=your_secure_password
+ volumes:
+ - ./config:/config
+ restart: unless-stopped
+ healthcheck:
+ test: [ "CMD", "mariadb-admin", "ping", "-h", "localhost" ]
+ interval: 5s
+ timeout: 5s
+ retries: 10
diff --git a/example-chart/Chart.yaml b/deploy/helm/grimmory/Chart.yaml
similarity index 90%
rename from example-chart/Chart.yaml
rename to deploy/helm/grimmory/Chart.yaml
index 271eefc8b..6177cc124 100644
--- a/example-chart/Chart.yaml
+++ b/deploy/helm/grimmory/Chart.yaml
@@ -1,7 +1,6 @@
apiVersion: v2
-name: booklore
-description: A Helm chart for [Booklore](https://github.com/booklore-app/booklore)
-
+name: grimmory
+description: A Helm chart for [Grimmory](https://github.com/grimmory-tools/grimmory)
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
@@ -11,18 +10,15 @@ description: A Helm chart for [Booklore](https://github.com/booklore-app/booklor
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
-
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
-
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
-appVersion: "0.38.2"
-
+appVersion: "v0.38.2"
dependencies:
- name: mariadb
version: 22.0.*
diff --git a/example-chart/templates/_helpers.tpl b/deploy/helm/grimmory/templates/_helpers.tpl
similarity index 76%
rename from example-chart/templates/_helpers.tpl
rename to deploy/helm/grimmory/templates/_helpers.tpl
index 1b4457071..5fba76838 100644
--- a/example-chart/templates/_helpers.tpl
+++ b/deploy/helm/grimmory/templates/_helpers.tpl
@@ -1,7 +1,7 @@
{{/*
Expand the name of the chart.
*/}}
-{{- define "booklore.name" -}}
+{{- define "grimmory.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
@@ -10,7 +10,7 @@ Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
-{{- define "booklore.fullname" -}}
+{{- define "grimmory.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
@@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
{{/*
Create chart name and version as used by the chart label.
*/}}
-{{- define "booklore.chart" -}}
+{{- define "grimmory.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
-{{- define "booklore.labels" -}}
-helm.sh/chart: {{ include "booklore.chart" . }}
-{{ include "booklore.selectorLabels" . }}
+{{- define "grimmory.labels" -}}
+helm.sh/chart: {{ include "grimmory.chart" . }}
+{{ include "grimmory.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
@@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/*
Selector labels
*/}}
-{{- define "booklore.selectorLabels" -}}
-app.kubernetes.io/name: {{ include "booklore.name" . }}
+{{- define "grimmory.selectorLabels" -}}
+app.kubernetes.io/name: {{ include "grimmory.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
-{{- define "booklore.serviceAccountName" -}}
+{{- define "grimmory.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
-{{- default (include "booklore.fullname" .) .Values.serviceAccount.name }}
+{{- default (include "grimmory.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
diff --git a/example-chart/templates/deployment.yaml b/deploy/helm/grimmory/templates/deployment.yaml
similarity index 92%
rename from example-chart/templates/deployment.yaml
rename to deploy/helm/grimmory/templates/deployment.yaml
index 578651adb..94355d23e 100644
--- a/example-chart/templates/deployment.yaml
+++ b/deploy/helm/grimmory/templates/deployment.yaml
@@ -1,13 +1,13 @@
apiVersion: apps/v1
kind: Deployment
metadata:
- name: {{ include "booklore.fullname" . }}
+ name: {{ include "grimmory.fullname" . }}
labels:
- {{- include "booklore.labels" . | nindent 4 }}
+ {{- include "grimmory.labels" . | nindent 4 }}
spec:
selector:
matchLabels:
- {{- include "booklore.selectorLabels" . | nindent 6 }}
+ {{- include "grimmory.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
@@ -15,7 +15,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
- {{- include "booklore.labels" . | nindent 8 }}
+ {{- include "grimmory.labels" . | nindent 8 }}
{{- with .Values.podLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
@@ -24,7 +24,7 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
- serviceAccountName: {{ include "booklore.serviceAccountName" . }}
+ serviceAccountName: {{ include "grimmory.serviceAccountName" . }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
@@ -109,7 +109,7 @@ spec:
claimName: {{ if .Values.persistence.dataVolume.existingClaim }}
{{- .Values.persistence.dataVolume.existingClaim }}
{{ else }}
- {{- include "booklore.fullname" . }}-data
+ {{- include "grimmory.fullname" . }}-data
{{- end }}
{{- end }}
{{- if .Values.persistence.booksVolume.enabled }}
@@ -118,7 +118,7 @@ spec:
claimName: {{ if .Values.persistence.booksVolume.existingClaim }}
{{- .Values.persistence.booksVolume.existingClaim }}
{{ else }}
- {{- include "booklore.fullname" . }}-books
+ {{- include "grimmory.fullname" . }}-books
{{- end }}
{{- end }}
{{- with .Values.extraVolumes }}
diff --git a/example-chart/templates/ingress.yaml b/deploy/helm/grimmory/templates/ingress.yaml
similarity index 85%
rename from example-chart/templates/ingress.yaml
rename to deploy/helm/grimmory/templates/ingress.yaml
index 1f0160a22..8aca08305 100644
--- a/example-chart/templates/ingress.yaml
+++ b/deploy/helm/grimmory/templates/ingress.yaml
@@ -2,9 +2,9 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
- name: {{ include "booklore.fullname" . }}
+ name: {{ include "grimmory.fullname" . }}
labels:
- {{- include "booklore.labels" . | nindent 4 }}
+ {{- include "grimmory.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
@@ -35,7 +35,7 @@ spec:
{{- end }}
backend:
service:
- name: {{ include "booklore.fullname" $ }}
+ name: {{ include "grimmory.fullname" $ }}
port:
number: {{ $.Values.service.port }}
{{- end }}
diff --git a/example-chart/templates/pvc.yaml b/deploy/helm/grimmory/templates/pvc.yaml
similarity index 75%
rename from example-chart/templates/pvc.yaml
rename to deploy/helm/grimmory/templates/pvc.yaml
index d39d51bd3..944576579 100644
--- a/example-chart/templates/pvc.yaml
+++ b/deploy/helm/grimmory/templates/pvc.yaml
@@ -5,8 +5,8 @@ metadata:
annotations:
helm.sh/resource-policy: keep
labels:
- app.kubernetes.io/name: {{ include "booklore.fullname" . }}
- name: {{ include "booklore.fullname" . }}-data
+ app.kubernetes.io/name: {{ include "grimmory.fullname" . }}
+ name: {{ include "grimmory.fullname" . }}-data
spec:
accessModes:
- ReadWriteOnce
@@ -22,8 +22,8 @@ metadata:
annotations:
helm.sh/resource-policy: keep
labels:
- app.kubernetes.io/name: {{ include "booklore.fullname" . }}
- name: {{ include "booklore.fullname" . }}-books
+ app.kubernetes.io/name: {{ include "grimmory.fullname" . }}
+ name: {{ include "grimmory.fullname" . }}-books
spec:
accessModes:
- ReadWriteOnce
diff --git a/example-chart/templates/service.yaml b/deploy/helm/grimmory/templates/service.yaml
similarity index 57%
rename from example-chart/templates/service.yaml
rename to deploy/helm/grimmory/templates/service.yaml
index 79714d144..1f7adca6d 100644
--- a/example-chart/templates/service.yaml
+++ b/deploy/helm/grimmory/templates/service.yaml
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
- name: {{ include "booklore.fullname" . }}
+ name: {{ include "grimmory.fullname" . }}
labels:
- {{- include "booklore.labels" . | nindent 4 }}
+ {{- include "grimmory.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
@@ -12,4 +12,4 @@ spec:
protocol: TCP
name: http
selector:
- {{- include "booklore.selectorLabels" . | nindent 4 }}
+ {{- include "grimmory.selectorLabels" . | nindent 4 }}
diff --git a/example-chart/templates/serviceaccount.yaml b/deploy/helm/grimmory/templates/serviceaccount.yaml
similarity index 73%
rename from example-chart/templates/serviceaccount.yaml
rename to deploy/helm/grimmory/templates/serviceaccount.yaml
index 9a4e2f6ab..a7e6bce7d 100644
--- a/example-chart/templates/serviceaccount.yaml
+++ b/deploy/helm/grimmory/templates/serviceaccount.yaml
@@ -2,9 +2,9 @@
apiVersion: v1
kind: ServiceAccount
metadata:
- name: {{ include "booklore.serviceAccountName" . }}
+ name: {{ include "grimmory.serviceAccountName" . }}
labels:
- {{- include "booklore.labels" . | nindent 4 }}
+ {{- include "grimmory.labels" . | nindent 4 }}
{{- with .Values.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
diff --git a/example-chart/values.yaml b/deploy/helm/grimmory/values.yaml
similarity index 79%
rename from example-chart/values.yaml
rename to deploy/helm/grimmory/values.yaml
index cd02f91bd..16c217600 100644
--- a/example-chart/values.yaml
+++ b/deploy/helm/grimmory/values.yaml
@@ -1,4 +1,4 @@
-# Default values for booklore.
+# Default values for grimmory.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
@@ -7,23 +7,20 @@ mariadb:
image:
tag: 11.8.3
auth:
- database: booklore
- username: booklore-user
-
+ database: grimmory
+ username: grimmory
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
image:
- repository: booklore/booklore
+ repository: grimmory/grimmory
# This sets the pull policy for images.
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
- tag: latest
-
+ tag: ""
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: []
# This is to override the chart name.
nameOverride: ""
fullnameOverride: ""
-
# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
serviceAccount:
# Specifies whether a service account should be created
@@ -35,24 +32,22 @@ serviceAccount:
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
-
# This is for setting Kubernetes Annotations to a Pod.
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podAnnotations: {}
# This is for setting Kubernetes Labels to a Pod.
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
podLabels: {}
-
podSecurityContext: {}
- # fsGroup: 2000
+# fsGroup: 2000
securityContext: {}
- # capabilities:
- # drop:
- # - ALL
- # readOnlyRootFilesystem: true
- # runAsNonRoot: true
- # runAsUser: 1000
+# capabilities:
+# drop:
+# - ALL
+# readOnlyRootFilesystem: true
+# runAsNonRoot: true
+# runAsUser: 1000
# This is for setting up a service more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/
service:
@@ -60,14 +55,13 @@ service:
type: ClusterIP
# This sets the ports more information can be found here: https://kubernetes.io/docs/concepts/services-networking/service/#field-spec-ports
port: 6060
-
# This block is for setting up the ingress for more information can be found here: https://kubernetes.io/docs/concepts/services-networking/ingress/
ingress:
enabled: false
className: ""
annotations: {}
- # kubernetes.io/ingress.class: nginx
- # kubernetes.io/tls-acme: "true"
+ # kubernetes.io/ingress.class: nginx
+ # kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
@@ -77,18 +71,17 @@ ingress:
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
-
resources: {}
- # We usually recommend not to specify default resources and to leave this as a conscious
- # choice for the user. This also increases chances charts run on environments with little
- # resources, such as Minikube. If you do want to specify resources, uncomment the following
- # lines, adjust them as necessary, and remove the curly braces after 'resources:'.
- # limits:
- # cpu: 100m
- # memory: 128Mi
- # requests:
- # cpu: 100m
- # memory: 128Mi
+# We usually recommend not to specify default resources and to leave this as a conscious
+# choice for the user. This also increases chances charts run on environments with little
+# resources, such as Minikube. If you do want to specify resources, uncomment the following
+# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
+# limits:
+# cpu: 100m
+# memory: 128Mi
+# requests:
+# cpu: 100m
+# memory: 128Mi
# # This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
livenessProbe:
@@ -97,7 +90,6 @@ livenessProbe:
readinessProbe:
tcpSocket:
port: http
-
# If you want to bring your own persistence (such as a hostPath),
# disable these and do so in extraVolumes/extraVolumeMounts
persistence:
@@ -109,13 +101,8 @@ persistence:
enabled: true
size: 10Gi
existingClaim: ""
-
extraVolumes: []
-
extraVolumeMounts: []
-
nodeSelector: {}
-
tolerations: []
-
affinity: {}
diff --git a/example-podman/README.md b/deploy/podman/quadlet/README.md
similarity index 60%
rename from example-podman/README.md
rename to deploy/podman/quadlet/README.md
index 622b53396..a1fd768b1 100644
--- a/example-podman/README.md
+++ b/deploy/podman/quadlet/README.md
@@ -1,19 +1,20 @@
# Podman Example
-This directory contains an example of how to use a rootless Podman pod defined through Quadlets to run booklore.
+This directory contains an example of how to use a rootless Podman pod defined through Quadlets to run Grimmory.
# Setup
1. Copy the files in this directory to a suitable location on your system.
- For many systems Quadlet monitors `~/.config/containers/systemd`
- - `mkdir -p ~/.config/containers/systemd && cp ./*lore* ~/.config/containers/systemd/`
-2. Edit the `booklore.container` to set the correct mounts for `bookdrop` and your library
+ - `mkdir -p ~/.config/containers/systemd && cp ./*grimmory* ~/.config/containers/systemd/`
+2. Edit the `grimmory.container` to set the correct mounts for `bookdrop` and your library
3. Create the Podman Secrets for the database
```bash
- echo -n "YOUR PASSWORD" | podman secret create booklore_db_pass -
+ echo -n "YOUR PASSWORD" | podman secret create grimmory_db_pass -
```
-4. (Optional) `podman pull ghcr.io/booklore-app/booklore:latest` to pre-pull the image
+4. (Optional) `podman pull ghcr.io/grimmory-tools/grimmory:v0.38.2` to pre-pull the image
* If you have a slow connection, this is recommended because systemd will time out if the image pull takes too long.
+ * To follow rolling releases instead, set the image tag to `latest` in `grimmory.container`.
5. Run `systemctl --user daemon-reload` to pick up the new Quadlet unit.
-6. Start the pod with `systemctl --user start booklore-pod.service`
+6. Start the pod with `systemctl --user start grimmory-pod.service`
# Autoupdates
If automatic updates are desired, enable the systemd timer:
@@ -24,9 +25,9 @@ systemctl --user enable podman-auto-update.timer
This is a native way to schedule `podman auto-update` to run periodically and update/restart containers with `AutoUpdate` enabled in their Quadlet files.
# Verification Commands
-- `systemctl --user status booklore-pod -l` - Check the status of the pod
-- `systemctl --user status booklore-db -l` - Check the status of the database
-- `systemctl --user status booklore -l` - Check the status of the booklore container
+- `systemctl --user status grimmory-pod -l` - Check the status of the pod
+- `systemctl --user status grimmory-db -l` - Check the status of the database
+- `systemctl --user status grimmory -l` - Check the status of the Grimmory container
# Further Reading
diff --git a/deploy/podman/quadlet/grimmory-data.volume b/deploy/podman/quadlet/grimmory-data.volume
new file mode 100644
index 000000000..15d9e61bc
--- /dev/null
+++ b/deploy/podman/quadlet/grimmory-data.volume
@@ -0,0 +1,2 @@
+[Volume]
+VolumeName=grimmory-data
diff --git a/deploy/podman/quadlet/grimmory-db.container b/deploy/podman/quadlet/grimmory-db.container
new file mode 100644
index 000000000..8c51b4937
--- /dev/null
+++ b/deploy/podman/quadlet/grimmory-db.container
@@ -0,0 +1,21 @@
+[Unit]
+Description=Grimmory Database Container Using MariaDB
+
+[Container]
+ContainerName=grimmory-db
+Image=lscr.io/linuxserver/mariadb:11.4.8
+Pod=grimmory.pod
+Pull=always
+
+Volume=grimmory-db:/config
+
+Environment=TZ=Etc/UTC
+Environment=PUID=0
+Environment=PGID=0
+Environment=MYSQL_USER=grimmory
+Secret=grimmory_db_pass,type=env,target=MYSQL_ROOT_PASSWORD
+Secret=grimmory_db_pass,type=env,target=MYSQL_PASSWORD
+Environment=MYSQL_DATABASE=grimmory
+
+DropCapability=all
+AddCapability=CAP_CHOWN CAP_SETUID CAP_SETGID CAP_FOWNER
diff --git a/deploy/podman/quadlet/grimmory-db.volume b/deploy/podman/quadlet/grimmory-db.volume
new file mode 100644
index 000000000..772b7c9c0
--- /dev/null
+++ b/deploy/podman/quadlet/grimmory-db.volume
@@ -0,0 +1,2 @@
+[Volume]
+VolumeName=grimmory-db
diff --git a/deploy/podman/quadlet/grimmory.container b/deploy/podman/quadlet/grimmory.container
new file mode 100644
index 000000000..0583d1a4f
--- /dev/null
+++ b/deploy/podman/quadlet/grimmory.container
@@ -0,0 +1,30 @@
+[Unit]
+Description=Grimmory container
+Requires=grimmory-db.container
+After=grimmory-db.container
+
+[Container]
+ContainerName=grimmory
+Image=ghcr.io/grimmory-tools/grimmory:v0.38.2
+Pod=grimmory.pod
+AutoUpdate=registry
+Pull=always
+
+Volume=grimmory-data:/app/data
+# note the :z is important for selinux systems
+# Volume=YOUR MOUNTS:/books:z
+# Volume=YOUR MOUNTS:/bookdrop:z
+
+
+Environment=TZ=Etc/UTC
+Secret=grimmory_db_pass,type=env,target=DATABASE_PASSWORD
+Environment=DATABASE_URL=jdbc:mariadb://localhost:3306/grimmory
+Environment=DATABASE_USERNAME=grimmory
+HealthCmd=wget -q -O - http://localhost:6060/api/v1/healthcheck
+HealthInterval=1m
+HealthRetries=5
+HealthStartPeriod=1m
+HealthTimeout=10s
+
+[Install]
+WantedBy=default.target
diff --git a/example-podman/booklore.pod b/deploy/podman/quadlet/grimmory.pod
similarity index 60%
rename from example-podman/booklore.pod
rename to deploy/podman/quadlet/grimmory.pod
index d2c84314e..5ca37f948 100644
--- a/example-podman/booklore.pod
+++ b/deploy/podman/quadlet/grimmory.pod
@@ -1,7 +1,7 @@
[Unit]
-Description=BookLore Pod
+Description=Grimmory Pod
After=network-online.target
[Pod]
-PodName=booklore
+PodName=grimmory
PublishPort=6060:6060
diff --git a/docker/unrar/unrar-amd64 b/docker/unrar/unrar-amd64
deleted file mode 100755
index 313790a4a847433f545258d99f4125942b625914..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 433064
zcmeFad3;nw_CDMR2{cH&Q9)5rTa6mrNE9?t89R``4K$h&P+S9quqaDRIxLEs&
eQ*_-rKn+&o?|VA;A^>baVa2MQYO{8u3~g)0TF(QZAR*mE}so_bIOa
zE}}{J=e2U3*R6>y8?3~hUF&(UD(^7GtLF4wVL6@E+{
zoa6Tl{BwSCVE3-%ToMOQhk&m5FOP%&BTjqs;_zPwqjx2L6!<;(=luBN==nvQdPl&K
zx|077bU;`5R8-g%erFtfN*sL(92!v
z+RLR@SN-dbgTE1{-s9u&{~Tw0-4|#44vZte9t(u7^gJa_y&uGpe@7fSm!V%cXE;B@
z0d!UG(Q)K|5l8;&IPDr3NB^mD;!oc=^Wf$<`dk`E{s(dVa7G+G*TupACytz};?z4g
zj-D^YY46xLath+;b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