diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml
index bb86f09..f07e3ad 100644
--- a/.gitea/workflows/build.yml
+++ b/.gitea/workflows/build.yml
@@ -2,6 +2,9 @@ name: build-and-publish
on:
push:
branches: [main]
+ # Lets `rebuild-all-apps.sh` force a rebuild (e.g. to roll out an urgent platform fix immediately
+ # instead of waiting for a Renovate bump PR).
+ workflow_dispatch:
jobs:
build:
@@ -12,15 +15,15 @@ jobs:
- name: Log in to the Gitea container registry
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.thebennett.net -u "${{ secrets.REGISTRY_USER }}" --password-stdin
- # --no-cache: the platform is a 0.1.0-SNAPSHOT dependency, so a stale cached maven layer could bake
- # in an old (e.g. unpatched) version. Always resolve fresh for a correct, scanned image.
+ # The platform is now referenced by an immutable RELEASE version, so a cached maven layer can't
+ # silently hold an old build — layer caching is safe again (and much faster).
- name: Build image
env:
DOCKER_BUILDKIT: "1"
MAVEN_USER: ${{ secrets.REGISTRY_USER }}
MAVEN_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: |
- docker build --no-cache \
+ docker build \
--secret id=maven_user,env=MAVEN_USER \
--secret id=maven_token,env=MAVEN_TOKEN \
--build-arg GIT_SHA=${{ github.sha }} \
diff --git a/pom.xml b/pom.xml
index 3543fe8..053b414 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,13 +7,13 @@
net.thebennett.platform
platform-parent
- 0.1.0-SNAPSHOT
+ 0.1.0
net.reformedwitness
confessions-of-grace
- 0.1.0-SNAPSHOT
+ 0.1.0
Confessions of Grace
Reformed devotional site — posts, authors, comments, subscriptions — on the Bennett platform.
@@ -26,7 +26,7 @@
net.thebennett.platform
platform-bom
- 0.1.0-SNAPSHOT
+ 0.1.0
pom
import
@@ -40,6 +40,18 @@
+
+
+
+ gitea
+ https://git.thebennett.net/api/packages/austin/maven
+ true
+ false
+
+
+
net.thebennett.platform
diff --git a/renovate.json b/renovate.json
new file mode 100644
index 0000000..73fce27
--- /dev/null
+++ b/renovate.json
@@ -0,0 +1,15 @@
+{
+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",
+ "extends": ["config:recommended"],
+ "packageRules": [
+ {
+ "description": "Bennett platform releases: our own code, already tested and Trivy-scanned before publish. Group the parent + BOM + starters into one PR and merge it automatically so security fixes reach this app without manual work. Merging main triggers the build, which re-runs tests and re-scans; if either fails no image is pushed, so a bad bump can't reach production.",
+ "matchPackageNames": ["net.thebennett.platform:**"],
+ "groupName": "bennett platform",
+ "automerge": true
+ }
+ ],
+ "vulnerabilityAlerts": {
+ "labels": ["security"]
+ }
+}