Publish prebuilt Docker images to GHCR

GitHub Actions builds and pushes multi-arch (amd64/arm64) api/web
images to ghcr.io on every push to main and on version tags, so
self-hosters can 'docker compose pull' instead of building from
source. compose.yml keeps both image: and build: so building locally
still works via --build.
This commit is contained in:
Duarte Santos committed 2026-07-21 11:11:26 +02:00
1 parent 4c2b6344f7
commit 8e20c2c304
5 files changed
+83 -2

No files matched your search

+3
View File
@@ -22,7 +22,9 @@ services:
restart: "no"
# Passkey auth + per-user data (Node, no framework).
# image: prebuilt (docker compose pull). build: from source (docker compose up --build).
api:
image: ghcr.io/duartesantos8/opengym-api:latest
build: ./api
restart: unless-stopped
env_file: .env
@@ -35,6 +37,7 @@ services:
# Builds the React frontend (multi-stage) and serves it, proxying /api → api
# and the exercise media from the shared volume. Single origin for passkeys.
web:
image: ghcr.io/duartesantos8/opengym-web:latest
build:
context: .
dockerfile: web/Dockerfile