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.

Drop the gitea.com mirror's workflows and templates

Duarte Santos9a175237a96f
diff --git a/.gitea/ISSUE_TEMPLATE/bug_report.yml b/.gitea/ISSUE_TEMPLATE/bug_report.yml
deleted file mode 100644
index dfc821eab..000000000
--- a/.gitea/ISSUE_TEMPLATE/bug_report.yml
+++ /dev/null
@@ -1,60 +0,0 @@
-name: Bug report
-description: Something in openGym is broken or not working as expected
-labels: ["bug"]
-body:
- - type: textarea
- id: what-happened
- attributes:
- label: What did you do?
- description: Steps to reproduce, as precisely as you can.
- placeholder: |
- 1. Go to '...'
- 2. Click on '...'
- 3. See error
- validations:
- required: true
-
- - type: textarea
- id: expected
- attributes:
- label: What did you expect to happen?
- validations:
- required: true
-
- - type: textarea
- id: actual
- attributes:
- label: What happened instead?
- description: Include error messages, console output, or screenshots if you have them.
- validations:
- required: true
-
- - type: dropdown
- id: setup
- attributes:
- label: How are you running openGym?
- options:
- - Self-hosted (docker compose)
- - Frontend dev server (npm run dev)
- - Other / not sure
- validations:
- required: true
-
- - type: input
- id: environment
- attributes:
- label: Browser & OS
- placeholder: e.g. Safari 17 on iOS 18, Chrome 126 on Android
- validations:
- required: true
-
- - type: checkboxes
- id: passkey
- attributes:
- label: Is this about login / passkeys?
- description: >
- Most login issues are an `RP_ID`/`ORIGIN` mismatch — check your `.env` against the
- domain you're accessing openGym from before reporting. See the
- [self-hosting guide](../../docs/SELF_HOSTING.md).
- options:
- - label: Yes, this is a login/passkey issue and I've already checked RP_ID/ORIGIN
diff --git a/.gitea/ISSUE_TEMPLATE/config.yml b/.gitea/ISSUE_TEMPLATE/config.yml
deleted file mode 100644
index ff525f9c7..000000000
--- a/.gitea/ISSUE_TEMPLATE/config.yml
+++ /dev/null
@@ -1,14 +0,0 @@
-# gitea.com has no Discussions, so questions and ideas are issues here — labelled, so they
-# are not mistaken for agreed-on work. Blank issues stay off: the forms ask for the two
-# things that otherwise cost a round-trip every time (how it is running, and RP_ID/ORIGIN).
-blank_issues_enabled: false
-contact_links:
- - name: Self-hosting guide
- url: https://gitea.com/DuarteSantos/openGym/src/branch/main/docs/SELF_HOSTING.md
- about: Passkey login failing, reverse proxies, HTTPS, Docker — most login trouble is an RP_ID/ORIGIN mismatch and is answered here.
- - name: Contributing guide
- url: https://gitea.com/DuarteSantos/openGym/src/branch/main/CONTRIBUTING.md
- about: Project layout, dev setup and guidelines before you open a PR.
- - name: Changelog
- url: https://gitea.com/DuarteSantos/openGym/src/branch/main/CHANGELOG.md
- about: What changed in each release, newest first.
diff --git a/.gitea/ISSUE_TEMPLATE/feature_request.yml b/.gitea/ISSUE_TEMPLATE/feature_request.yml
deleted file mode 100644
index 8813faacf..000000000
--- a/.gitea/ISSUE_TEMPLATE/feature_request.yml
+++ /dev/null
@@ -1,29 +0,0 @@
-name: Feature request
-description: Suggest an idea or improvement for openGym
-labels: ["enhancement"]
-body:
- - type: textarea
- id: problem
- attributes:
- label: What problem does this solve?
- description: What are you trying to do that openGym doesn't support today?
- validations:
- required: true
-
- - type: textarea
- id: proposal
- attributes:
- label: Proposed approach
- description: How would you like it to work? Rough ideas are fine.
- validations:
- required: true
-
- - type: checkboxes
- id: deps
- attributes:
- label: Dependencies
- description: >
- openGym is intentionally dependency-light — new packages (front or back) are a hard
- sell. See [CONTRIBUTING.md](../../CONTRIBUTING.md).
- options:
- - label: This doesn't require adding a new dependency
diff --git a/.gitea/workflows/docker-publish.yml b/.gitea/workflows/docker-publish.yml
deleted file mode 100644
index d344da50a..000000000
--- a/.gitea/workflows/docker-publish.yml
+++ /dev/null
@@ -1,86 +0,0 @@
-# Publishes the two images to the gitea.com container registry, replacing GHCR.
-#
-# Images land at gitea.com/duartesantos/opengym-{api,web} and are what
-# `docker compose pull` fetches.
-#
-# As on GitHub, a *published release* is the trigger, never a bare tag push: the
-# versioning rule consolidates unreleased tags, and a deleted tag does not delete
-# the image tags it already pushed — dependency bots then read the orphan as a
-# newer series (that was issue #87 on the old repo).
-#
-# Needs one repository secret: PACKAGES_TOKEN — a gitea.com token with
-# write:package scope (Settings → Applications → Generate New Token). The built-in
-# token cannot write packages.
-name: Publish Docker images
-
-on:
- push:
- branches: [main]
- release:
- types: [published]
- workflow_dispatch:
-
-jobs:
- build:
- runs-on: ubuntu-latest
- strategy:
- matrix:
- include:
- - image: api
- context: ./api
- file: ./api/Dockerfile
- - image: web
- context: .
- file: ./web/Dockerfile
- steps:
- - uses: actions/checkout@v4
-
- - name: Lowercase owner (registry names must be lowercase)
- id: repo
- run: echo "owner=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> "$GITHUB_OUTPUT"
-
- - name: Set version metadata
- id: version_meta
- run: |
- # On a release the ref is refs/tags/vX.Y.Z; on a main push it is a branch ref,
- # which would otherwise label the image "refs/heads/main".
- case "$GITHUB_REF" in
- refs/tags/*) VERSION="${GITHUB_REF#refs/tags/}" ;;
- *) VERSION="main-${GITHUB_SHA::7}" ;;
- esac
- echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
- echo "VCS_REF=${GITHUB_SHA}" >> $GITHUB_OUTPUT
- echo "BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_OUTPUT
-
- - uses: docker/setup-qemu-action@v3
- - uses: docker/setup-buildx-action@v3
-
- - uses: docker/login-action@v3
- with:
- registry: gitea.com
- username: ${{ github.repository_owner }}
- password: ${{ secrets.PACKAGES_TOKEN }}
-
- - uses: docker/metadata-action@v5
- id: meta
- with:
- images: gitea.com/${{ steps.repo.outputs.owner }}/opengym-${{ matrix.image }}
- tags: |
- type=raw,value=latest,enable={{is_default_branch}}
- type=semver,pattern={{version}}
- type=semver,pattern={{major}}.{{minor}}
-
- # No cache-from/to: the GHCR copy used type=gha, which is a GitHub-hosted
- # service and is not there on gitea.com's runners.
- - uses: docker/build-push-action@v6
- with:
- context: ${{ matrix.context }}
- file: ${{ matrix.file }}
- platforms: linux/amd64,linux/arm64
- build-args: |
- VERSION=${{ steps.version_meta.outputs.VERSION }}
- VCS_REF=${{ steps.version_meta.outputs.VCS_REF }}
- BUILD_DATE=${{ steps.version_meta.outputs.BUILD_DATE }}
- push: true
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}
diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml
deleted file mode 100644
index f6da78ecc..000000000
--- a/.gitea/workflows/test.yml
+++ /dev/null
@@ -1,38 +0,0 @@
-# Same suite as .github/workflows/test.yml, run by gitea.com's Actions runners.
-# The GitHub copy is kept for the day that account comes back; this one is what
-# actually gates contributions today.
-name: Tests
-
-on:
- pull_request:
- paths:
- - 'frontend/**'
- - 'mcp/**'
- - '.gitea/workflows/test.yml'
- push:
- branches: [main]
- paths:
- - 'frontend/**'
- - 'mcp/**'
- - '.gitea/workflows/test.yml'
- workflow_dispatch:
-
-concurrency:
- group: test-${{ github.ref }}
- cancel-in-progress: true
-
-jobs:
- test:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- # node:22-alpine in web/Dockerfile and api/Dockerfile — CI must match production.
- - uses: actions/setup-node@v4
- with:
- node-version: 22
- cache: npm
- cache-dependency-path: frontend/package-lock.json
- - run: npm ci
- working-directory: frontend
- - run: npm test
- working-directory: frontend
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b675de473..600486d8a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,7 @@
# openGym — GitLab CI/CD
#
-# This is the pipeline that actually gates and ships the project. It replaces the
-# GitHub Actions workflows (.github/, dormant since the account suspension) and the
-# gitea.com ones (.gitea/, kept only so the mirror stays buildable).
+# GitHub is openGym's home and its Actions (.github/) test and publish it; GitLab is a mirror
+# (.github/workflows/mirror.yml), and this pipeline keeps it building and tested.
#
# What it does, in order:
# test — frontend, MCP and api (Coach) suites on every branch, MR and tag, each with a