Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.
JavaScript apple-watchbodyweightdockerfitnessfitness-trackergymhealthiosmcpnodejspasskeysprogressive-web-applicationspwareactself-hostedself-hostingvitewebauthnweightliftingworkout-tracker
CI: Renovate als Dependabot-Ersatz, geplante Pipelines bauen nichts mit
Duarte Santosd2035e05623b
diff --git a/.gitlab-ci.yml b/.gitlab-ci.ymlindex b159a2645..20269d49b 100644--- a/.gitlab-ci.yml+++ b/.gitlab-ci.yml@@ -25,6 +25,7 @@ stages:- package- deploy- release+ - maintenancevariables:# node:22-alpine in web/Dockerfile and api/Dockerfile — CI must match production.@@ -73,6 +74,12 @@ test:frontend:# The fatigue model must never read higher after a rest day than before it.# Property probe over ~108k comparisons; too slow for the unit suite, cheap here.- npm run test:fatigue-probe+ rules:+ # A scheduled pipeline exists only to run `renovate` (bottom of this file) — it must not+ # re-run the suite or republish the edge images once a month for nothing.+ - if: $CI_PIPELINE_SOURCE == "schedule"+ when: never+ - when: on_successtest:mcp:extends: .node@@ -92,6 +99,12 @@ test:mcp:# ?raw all resolve happily there. That is how a Vite-only import reached a shared lib# module with 33 green tests standing over a server that died on startup.- npm run check:node-loadable+ rules:+ # A scheduled pipeline exists only to run `renovate` (bottom of this file) — it must not+ # re-run the suite or republish the edge images once a month for nothing.+ - if: $CI_PIPELINE_SOURCE == "schedule"+ when: never+ - when: on_success# --------------------------------------------------------------------------- images@@ -161,6 +174,10 @@ build:images:--push \"$CONTEXT"rules:+ # A scheduled pipeline exists only to run `renovate` (bottom of this file) — it must not+ # re-run the suite or republish the edge images once a month for nothing.+ - if: $CI_PIPELINE_SOURCE == "schedule"+ when: never- if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH- if: $CI_PIPELINE_SOURCE == "merge_request_event"@@ -248,6 +265,10 @@ build:apk:dotenv: apk.envexpire_in: 30 daysrules:+ # A scheduled pipeline exists only to run `renovate` (bottom of this file) — it must not+ # re-run the suite or republish the edge images once a month for nothing.+ - if: $CI_PIPELINE_SOURCE == "schedule"+ when: never- if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+$/# An APK build is ~8 minutes of shared-runner time; on main and MRs it is one click# away rather than automatic. Flip `when: manual` off to have every push build one.@@ -282,6 +303,10 @@ pages:paths:- publicrules:+ # A scheduled pipeline exists only to run `renovate` (bottom of this file) — it must not+ # re-run the suite or republish the edge images once a month for nothing.+ - if: $CI_PIPELINE_SOURCE == "schedule"+ when: never- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCHchanges:paths:@@ -331,3 +356,35 @@ release:- name: "Container images (api + web)"url: "$CI_PROJECT_URL/container_registry"link_type: image++# ---------------------------------------------------------------------- dependencies++# Dependency updates. GitLab has no Dependabot, so Renovate runs as a job — but only on a+# *scheduled* pipeline (Build → Pipeline schedules), so it never fires on a push and never+# competes with a real pipeline for runner minutes. Its policy lives in `renovate.json`+# next to this file, and it is the same policy the GitHub Dependabot config had: monthly,+# grouped per ecosystem, majors on their own, and the native mobile projects left alone.+#+# Needs one CI/CD variable: RENOVATE_TOKEN — a GitLab token with `api` scope, which is what+# lets it read the project and open merge requests.+renovate:+ stage: maintenance+ image:+ name: renovate/renovate:41+ entrypoint: [""]+ variables:+ RENOVATE_PLATFORM: gitlab+ RENOVATE_ENDPOINT: "$CI_API_V4_URL"+ RENOVATE_AUTODISCOVER: "false"+ RENOVATE_REPOSITORIES: "$CI_PROJECT_PATH"+ RENOVATE_ONBOARDING: "false"+ RENOVATE_REQUIRE_CONFIG: "required"+ LOG_LEVEL: info+ script:+ - renovate+ rules:+ - if: $CI_PIPELINE_SOURCE == "schedule" && $RENOVATE_TOKEN+ # Also runnable by hand from the pipeline page when you want to see what it would do.+ - if: $CI_PIPELINE_SOURCE == "web" && $RENOVATE_TOKEN+ when: manual+ allow_failure: truediff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6fa7f7075..230c44757 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -65,6 +65,11 @@ since the GitHub account went.embeds.- 📄 Security reports have a private channel again: a **confidential issue** on GitLab. See`SECURITY.md`.+- 🔁 **Dependency updates continue.** GitLab has no Dependabot, so Renovate runs from a monthly+ scheduled pipeline with the same deliberately quiet policy the Dependabot config had:+ grouped per ecosystem, majors on their own, odd-numbered Node images skipped, and the+ generated `android/`/`ios/` projects left to follow their `@capacitor/*` packages. Security+ advisories ignore the schedule and land on their own.### Housekeepingdiff --git a/renovate.json b/renovate.jsonnew file mode 100644index 000000000..2ca8c02ed--- /dev/null+++ b/renovate.json@@ -0,0 +1,90 @@+{+ "$schema": "https://docs.renovatebot.com/renovate-schema.json",+ "extends": ["config:recommended", ":semanticCommitsDisabled"],++ "_comment": [+ "Dependency updates, deliberately quiet — the GitLab counterpart of .github/dependabot.yml,",+ "with the same policy behind it. openGym is dependency-light on purpose: the frontend is",+ "React + Router + Zustand, api/ has two runtime dependencies. A default setup would still",+ "open an MR per package per week, which on a solo project means the MRs stop being read —",+ "the opposite of what this is for. So: monthly, everything in an ecosystem grouped into one",+ "MR, and a low cap on open MRs.",+ "Run by the `renovate` job in .gitlab-ci.yml, which fires only on *scheduled* pipelines."+ ],++ "timezone": "Europe/Zurich",+ "schedule": ["* 0-6 1 * *"],+ "prConcurrentLimit": 5,+ "prHourlyLimit": 0,+ "labels": ["dependencies"],+ "rangeStrategy": "bump",+ "dependencyDashboard": true,++ "_managers": [+ "gradle (frontend/android) and cocoapods (frontend/ios) are deliberately NOT managed:",+ "Capacitor generates those shells and pins the native versions to the @capacitor/* npm",+ "packages. Bumping them independently desyncs the two and breaks the mobile build; they",+ "follow the npm update instead."+ ],+ "enabledManagers": ["npm", "dockerfile", "gitlabci"],++ "packageRules": [+ {+ "description": "Frontend routine bumps arrive as one MR. Runtime and build tooling move together anyway (a Vite bump usually wants its plugin bumped), and splitting them doubles the review without splitting the risk.",+ "matchManagers": ["npm"],+ "matchFileNames": ["frontend/package.json"],+ "matchUpdateTypes": ["minor", "patch"],+ "groupName": "frontend"+ },+ {+ "description": "Frontend majors get their own MR. The first grouped run on GitHub bundled a Capacitor 7 → 8 migration in with six siblings, where it read as housekeeping — and CI would have gone green on it, because the test job builds the web app and never touches the mobile flavour. A major that lands alone is at least obviously a decision.",+ "matchManagers": ["npm"],+ "matchFileNames": ["frontend/package.json"],+ "matchUpdateTypes": ["major"],+ "groupName": "frontend-major"+ },+ {+ "description": "Capacitor 8 needs Node >= 22 and frontend/android + frontend/ios are committed, so a major also means migrating the native projects — Gradle/AGP, the Podfile. That is a deliberate piece of work, not a dependency bump. Drop this rule when you want to do it.",+ "matchPackageNames": ["@capacitor/**"],+ "matchUpdateTypes": ["major"],+ "enabled": false+ },+ {+ "description": "Backend, api/package.json (@simplewebauthn/server, web-push).",+ "matchManagers": ["npm"],+ "matchFileNames": ["api/package.json"],+ "matchUpdateTypes": ["minor", "patch"],+ "groupName": "api"+ },+ {+ "description": "Two dependencies, but one of them verifies passkeys — a major there is worth reading on its own rather than alongside anything else.",+ "matchManagers": ["npm"],+ "matchFileNames": ["api/package.json"],+ "matchUpdateTypes": ["major"],+ "groupName": "api-major"+ },+ {+ "description": "Base images in api/Dockerfile and web/Dockerfile.",+ "matchManagers": ["dockerfile"],+ "groupName": "base images"+ },+ {+ "description": "Odd-numbered Node majors are 'Current', never LTS — they stop getting fixes in about six months. Dependabot's first run offered 22 → 25, which for something other people self-host is a stability downgrade for nothing. Even majors (22 → 24 → 26) are still proposed, which is the move actually worth reviewing.",+ "matchDatasources": ["docker"],+ "matchPackageNames": ["node"],+ "allowedVersions": "/^(\\d*[02468])\\./"+ },+ {+ "description": "The images the pipeline itself runs on. Same reasoning as the GitHub-Actions rule this replaces: these jobs publish the container images and build the signed APK, so the blast radius is real — but they move in lockstep and none is worth an MR of its own.",+ "matchManagers": ["gitlabci"],+ "groupName": "ci images"+ }+ ],++ "vulnerabilityAlerts": {+ "description": "Security fixes ignore the monthly schedule and the group — they land immediately, on their own.",+ "schedule": ["at any time"],+ "labels": ["dependencies", "security"],+ "prPriority": 10+ }+}