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.

CI: auch das Image pruefen, das wirklich veroeffentlicht wird

Duarte Santosd68cee949d67
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index dd972bba3..39cce46e0 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -106,6 +106,18 @@ jobs:
- run: docker build --target default -t opengym-api:default ./api
- run: docker build --target coach -t opengym-api:coach ./api
+ # No --target, exactly like docker-publish.yml. That workflow names no stage, so what it
+ # ships is whatever Dockerfile stage happens to be last -- and that untargeted artifact,
+ # not opengym-api:default above, is the image every self-hoster pulls as :latest. Build it
+ # the same way here so the assertion below is about the thing we actually publish.
+ - run: docker build -t opengym-api:published ./api
+
+ - name: the image published as :latest has no AI runtime either
+ run: |
+ docker run --rm opengym-api:published node -e \
+ 'import("@anthropic-ai/claude-agent-sdk").then(()=>{console.error("AI runtime present in the published image -- the last Dockerfile stage is no longer the runtime-free one");process.exit(1)},()=>process.exit(0))'
+ ! docker run --rm opengym-api:published codex --version
+ ! docker run --rm opengym-api:published bwrap --version
- name: the default image boots and serves, with no AI runtime in it
run: |