Skip to content

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.

v1.2.16: das Web-Image baut wieder, und ein MR-Check dafuer

Duarte Santosf190f0ba4aab
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8a64b33ed..d4ef7304d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -318,6 +318,47 @@ build:api-check:
when: manual
allow_failure: true
+# The web image is built from the repository root, and the frontend imports the Coach core from
+# api/coach/core — a path the Dockerfile has to copy by hand. Nothing in test:frontend or the
+# Pages build goes through that Dockerfile, so an MR could pass everything and still ship an
+# image that does not build (v1.2.15 did). Built here, never pushed.
+build:web-check:
+ stage: build
+ image: docker:28-cli
+ services:
+ - docker:28-dind
+ variables:
+ DOCKER_HOST: tcp://docker:2376
+ DOCKER_TLS_CERTDIR: "/certs"
+ DOCKER_TLS_VERIFY: "1"
+ DOCKER_CERT_PATH: "/certs/client"
+ needs: ["test:frontend"]
+ script:
+ - docker build -f web/Dockerfile -t opengym-web:check .
+ # It serves the app shell, and the shell is this build (the Coach setup is in the bundle).
+ - |
+ set -eu
+ docker run -d --name web-check -e BACKEND=127.0.0.1 -e PORT=3000 opengym-web:check
+ sleep 2
+ docker exec web-check wget -qO- http://127.0.0.1/ | grep -q '<div id="root">'
+ docker exec web-check sh -c 'grep -l "coach" /usr/share/nginx/html/assets/index-*.js >/dev/null'
+ docker rm -f web-check
+ rules:
+ - 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"
+ changes:
+ paths:
+ - "frontend/**/*"
+ - "web/**/*"
+ - "api/coach/core/**/*"
+ - ".gitlab-ci.yml"
+ - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+ when: manual
+ allow_failure: true
+
# ------------------------------------------------------------------------------ apk
# The official signed APK. Signing keys live in protected CI variables, so they only
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0dd7b03c0..e20e89344 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,15 @@
# Changelog
+## v1.2.16 — 2026-09-03
+
+- 🐳 **The web image builds again.** v1.2.15's tag pipeline published the API image and the APK
+ but the web image failed to build: the frontend imports the Coach's core from `api/coach/core`,
+ and `web/Dockerfile` copied only `frontend/`. The image now carries that directory at the same
+ relative position it has in the repository, and a new `build:web-check` job builds the web
+ image on every merge request that touches the frontend, the Dockerfile or the core — the API
+ image had that check, the web image did not. Nothing else changed; v1.2.15's notes below are
+ this release's notes.
+
## v1.2.15 — 2026-09-03
The AI Coach. An optional coach that designs a training plan from a few answers and reviews
diff --git a/api/openapi.yaml b/api/openapi.yaml
index d2b3dc669..cf976b042 100644
--- a/api/openapi.yaml
+++ b/api/openapi.yaml
@@ -6,7 +6,7 @@ openapi: 3.1.0
info:
title: openGym API
- version: 1.2.15
+ version: 1.2.16
summary: Passkey (WebAuthn) auth + per-user state storage for openGym
description: |
The backend of [openGym](https://opengym.duarte-santos.ch) — a free, open-source
diff --git a/api/package-lock.json b/api/package-lock.json
index c75cd0535..84ed0ee12 100644
--- a/api/package-lock.json
+++ b/api/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "gym-api",
- "version": "1.2.15",
+ "version": "1.2.16",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "gym-api",
- "version": "1.2.15",
+ "version": "1.2.16",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@simplewebauthn/server": "^13.1.1",
diff --git a/api/package.json b/api/package.json
index a2f65b7ed..aa190002f 100644
--- a/api/package.json
+++ b/api/package.json
@@ -1,6 +1,6 @@
{
"name": "gym-api",
- "version": "1.2.15",
+ "version": "1.2.16",
"private": true,
"type": "module",
"main": "server.js",
diff --git a/frontend/package-lock.json b/frontend/package-lock.json
index b3dce72a9..71daa9bac 100644
--- a/frontend/package-lock.json
+++ b/frontend/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "opengym-frontend",
- "version": "1.2.15",
+ "version": "1.2.16",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "opengym-frontend",
- "version": "1.2.15",
+ "version": "1.2.16",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@aparajita/capacitor-secure-storage": "^7.1.6",
diff --git a/frontend/package.json b/frontend/package.json
index 90846c8ca..8f0bd0616 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -1,7 +1,7 @@
{
"name": "opengym-frontend",
"private": true,
- "version": "1.2.15",
+ "version": "1.2.16",
"type": "module",
"scripts": {
"dev": "vite",
diff --git a/web/Dockerfile b/web/Dockerfile
index 8eabfab88..22f0b9000 100644
--- a/web/Dockerfile
+++ b/web/Dockerfile
@@ -8,9 +8,14 @@
# specific native binaries, which is what breaks `vite build` with unrelated-looking
# module-resolution errors.
FROM --platform=$BUILDPLATFORM node:22-alpine AS build
-WORKDIR /app
+# The frontend sits at /app/frontend, not /app: the Coach's runtime-neutral core lives in
+# api/coach/core and is imported from frontend/src as ../../../api/coach/core/*, so the two
+# have to keep the same relative position they have in the repository. Copying frontend/ alone
+# is exactly what made the v1.2.15 web image fail to build.
+WORKDIR /app/frontend
COPY frontend/package.json frontend/package-lock.json* ./
RUN npm ci 2>/dev/null || npm install
+COPY api/coach/core/ /app/api/coach/core/
COPY frontend/ ./
RUN npm run build
@@ -31,7 +36,7 @@ LABEL maintainer="Duarte Santos https://gitlab.com/DuarteSantos8" \
org.opencontainers.image.created=$BUILD_DATE
COPY web/nginx.conf.template /etc/nginx/templates/default.conf.template
-COPY --from=build /app/dist /usr/share/nginx/html
+COPY --from=build /app/frontend/dist /usr/share/nginx/html
# exercise media (img/gif) is mounted at runtime from the media volume
# Set Default ENVs for nginx
diff --git a/website/api.html b/website/api.html
index 43aba7db0..d979d0420 100644
--- a/website/api.html
+++ b/website/api.html
@@ -1,6 +1,6 @@
<!DOCTYPE html>
<!-- GENERATED FILE - do not edit by hand.
- Built by scripts/build-api-docs.mjs from api/openapi.yaml (openGym API v1.2.15).
+ Built by scripts/build-api-docs.mjs from api/openapi.yaml (openGym API v1.2.16).
Regenerate with: node scripts/build-api-docs.mjs -->
<html lang="en">
<head>
@@ -232,7 +232,7 @@ main.api-main .lead { color: var(--fg-2); max-width: 58ch; margin: 14px 0 0; fon
</div>
<p class="api-facts">
<span>OpenAPI 3.1.0</span>
- <span>openGym v1.2.15</span>
+ <span>openGym v1.2.16</span>
<span>28 endpoints</span>
<span>AGPL-3.0-or-later</span>
</p>
diff --git a/website/index.html b/website/index.html
index ce8f42f8c..282b2aed2 100644
--- a/website/index.html
+++ b/website/index.html
@@ -390,7 +390,7 @@ try {
</ul>
<div class="push">
<a class="btn" href="openGym.apk" download>Download for Android</a>
- <p class="meta">v1.2.15 · 4.6 MB · Android 6.0+ · signed APK. Your browser will ask
+ <p class="meta">v1.2.16 · 4.6 MB · Android 6.0+ · signed APK. Your browser will ask
before installing; that is normal outside the Play Store.</p>
<p class="meta">Every release is also built and signed by CI and attached to the
<a href="https://gitlab.com/DuarteSantos8/opengym/-/releases" rel="noopener">GitLab