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.

GitLab mirror: the APK is built on request only, the release links to GitHub's

Duarte Santos33cd9256aa00
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4e4f4ae46..7bf260486 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -593,18 +593,15 @@ build:apk:
reports:
dotenv: apk.env
expire_in: 30 days
+ # Since v1.4.2 the released APK is built and signed on the release machine with the app's
+ # larger animations and published on GitHub (docs/APP_STORES.md). This mirror's APK would be a
+ # second, different file with the same version number, so it is only built on request now:
+ # one click on main or a merge request, never on a tag.
rules:
- !reference [.rules, not_on_schedule]
- - *release_tag
- # Every main push builds a signed APK (~9 minutes on the project runner; while the shared
- # runners paid for it, this was a manual job). The newest one is always at
- # $CI_PROJECT_URL/-/jobs/artifacts/main/browse?job=build:apk
- # which is the "try what is on main" build — and a red job here means the release tag
- # would have failed the same way, so it is caught before the tag.
- - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- # Merge requests: one click away, so a fork MR does not cost nine runner minutes for an
- # APK nobody asked for.
- - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+ - if: $CI_COMMIT_TAG
+ when: never
+ - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH || $CI_PIPELINE_SOURCE == "merge_request_event"
when: manual
allow_failure: true
@@ -840,8 +837,6 @@ release:
needs:
- job: build:images
artifacts: true
- - job: build:apk
- artifacts: true
- job: verify:stack
artifacts: false
- job: verify:scan
@@ -877,7 +872,7 @@ release:
| \`$CI_REGISTRY_IMAGE/api\` | \`$SEMVER\` \`$MINOR\` \`latest\` | \`$IMAGE_DIGEST_API\` |
| \`$CI_REGISTRY_IMAGE/web\` | \`$SEMVER\` \`$MINOR\` \`latest\` | \`$IMAGE_DIGEST_WEB\` |
- Both images are linux/amd64 + linux/arm64. Android: \`openGym-$APK_VERSION.apk\`, SHA-256 \`$APK_SHA256\` — check it with \`sha256sum -c openGym-$APK_VERSION.apk.sha256\`. Built from $CI_COMMIT_SHA.
+ Both images are linux/amd64 + linux/arm64. The Android APK and the store apps are on the GitHub release: https://github.com/DuarteSantos8/openGym/releases/tag/$CI_COMMIT_TAG. Built from $CI_COMMIT_SHA.
EOF
cat release-notes.md
release:
@@ -886,12 +881,9 @@ release:
description: release-notes.md
assets:
links:
- - name: "openGym-$APK_VERSION.apk (Android, sideload)"
- url: "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/opengym-android/$APK_VERSION/openGym-$APK_VERSION.apk"
+ - name: "Android APK (GitHub release)"
+ url: "https://github.com/DuarteSantos8/openGym/releases/tag/$CI_COMMIT_TAG"
link_type: package
- - name: "openGym-$APK_VERSION.apk.sha256 (checksum)"
- url: "$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/generic/opengym-android/$APK_VERSION/openGym-$APK_VERSION.apk.sha256"
- link_type: other
- name: "Container images (api + web)"
url: "$CI_PROJECT_URL/container_registry"
link_type: image