From da7847e79e8094fbb410f951004fc0efc1365ec5 Mon Sep 17 00:00:00 2001 From: MrSphay Date: Fri, 15 May 2026 04:34:55 +0200 Subject: [PATCH] Fix container image publishing --- .codex/project.md | 2 +- .gitea/workflows/build.yml | 3 ++- AGENTS.md | 2 +- Dockerfile | 2 ++ README.md | 6 +++--- blueprint.md | 2 +- docker-compose.yml | 2 +- docs/agent-handoff.md | 2 +- docs/release-checklist.md | 2 +- 9 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.codex/project.md b/.codex/project.md index d786906..764aeb2 100644 --- a/.codex/project.md +++ b/.codex/project.md @@ -47,7 +47,7 @@ Next.js standalone build output: Docker image: ```text -git.wilkensxl.de/MrSphay/watchlink:latest +git.wilkensxl.de/mrsphay/watchlink:latest ``` ## Security Rules diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index b3442f7..54de904 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -11,7 +11,8 @@ jobs: build: runs-on: ubuntu-latest env: - IMAGE_NAME: git.wilkensxl.de/MrSphay/watchlink:latest + DATABASE_URL: postgresql://watchlink:watchlink@localhost:5432/watchlink?schema=public + IMAGE_NAME: git.wilkensxl.de/mrsphay/watchlink:latest steps: - name: Checkout uses: actions/checkout@v4 diff --git a/AGENTS.md b/AGENTS.md index d4a6cb2..4558adb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -14,7 +14,7 @@ WatchLink is a Dockerized Next.js + Postgres web app for persistent shared watch - Do not create a release unless explicitly requested. - Create focused tracker issues for real follow-up work that is outside the current scope or independently parallelizable. If Gitea issue access is unavailable, document the follow-up in `docs/agent-handoff.md`. - Gitea target: `git.wilkensxl.de/MrSphay/WatchLink`. -- Docker image target: `git.wilkensxl.de/MrSphay/watchlink:latest`. +- Docker image target: `git.wilkensxl.de/mrsphay/watchlink:latest`. ## Commands diff --git a/Dockerfile b/Dockerfile index 06fb068..cfd3cb5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ RUN npm install FROM node:22-bookworm-slim AS builder WORKDIR /app ENV NEXT_TELEMETRY_DISABLED=1 +ARG DATABASE_URL="postgresql://watchlink:watchlink@localhost:5432/watchlink?schema=public" +ENV DATABASE_URL=$DATABASE_URL COPY --from=deps /app/node_modules ./node_modules COPY . . RUN npx prisma generate && npm run build diff --git a/README.md b/README.md index 02e02b3..1fd32e1 100644 --- a/README.md +++ b/README.md @@ -51,9 +51,9 @@ The Compose stack exposes the web app on `http://localhost:3000` and uses a Post Build and publish the Gitea image: ```bash -docker build -t git.wilkensxl.de/MrSphay/watchlink:latest . +docker build -t git.wilkensxl.de/mrsphay/watchlink:latest . docker login git.wilkensxl.de -docker push git.wilkensxl.de/MrSphay/watchlink:latest +docker push git.wilkensxl.de/mrsphay/watchlink:latest ```

-----------------------------------------------------

@@ -69,7 +69,7 @@ git@git.wilkensxl.de:MrSphay/WatchLink.git Target container image: ```text -git.wilkensxl.de/MrSphay/watchlink:latest +git.wilkensxl.de/mrsphay/watchlink:latest ``` CI expects `REGISTRY_TOKEN` to be configured as a repository or organization secret when image publishing should run. diff --git a/blueprint.md b/blueprint.md index d01f211..96ec8d2 100644 --- a/blueprint.md +++ b/blueprint.md @@ -33,4 +33,4 @@ npm run dev docker compose up --build ``` -Target image: `git.wilkensxl.de/MrSphay/watchlink:latest` +Target image: `git.wilkensxl.de/mrsphay/watchlink:latest` diff --git a/docker-compose.yml b/docker-compose.yml index fdf4f93..405eb1c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,7 +15,7 @@ services: web: build: . - image: git.wilkensxl.de/MrSphay/watchlink:latest + image: git.wilkensxl.de/mrsphay/watchlink:latest depends_on: postgres: condition: service_healthy diff --git a/docs/agent-handoff.md b/docs/agent-handoff.md index c19651a..5bb4ae4 100644 --- a/docs/agent-handoff.md +++ b/docs/agent-handoff.md @@ -15,5 +15,5 @@ Initial implementation created from `codex-agent-repository-kit` guidance. - Confirm repository visibility in Gitea and set `MrSphay/WatchLink` to public if it is still private. API verification was blocked by `GITEA_TOKEN` returning 401. - Run `npm install`, `npm run typecheck`, `npm run test`, and `npm run build` once npm is available. -- Build and push `git.wilkensxl.de/MrSphay/watchlink:latest` once Docker is available. +- Build and push `git.wilkensxl.de/mrsphay/watchlink:latest` once Docker is available. - Poll Gitea Actions after the next push once API token access is fixed. diff --git a/docs/release-checklist.md b/docs/release-checklist.md index 9937edc..edee163 100644 --- a/docs/release-checklist.md +++ b/docs/release-checklist.md @@ -4,6 +4,6 @@ - [ ] `docker compose up --build` starts app and Postgres. - [ ] First setup works on a clean database. - [ ] Gitea Actions are green. -- [ ] Container image `git.wilkensxl.de/MrSphay/watchlink:latest` is pushed and pull-tested. +- [ ] Container image `git.wilkensxl.de/mrsphay/watchlink:latest` is pushed and pull-tested. - [ ] README and CHANGELOG are current. - [ ] No `.env`, tokens, private keys, or local secrets are tracked.