Fix container image publishing
Some checks failed
Build / build (push) Failing after 2m58s
Release Dry Run / release-dry-run (push) Successful in 1m21s
Template Compliance / compliance (push) Successful in 5s

This commit is contained in:
MrSphay
2026-05-15 04:34:55 +02:00
parent 296270b2c0
commit da7847e79e
9 changed files with 13 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ Next.js standalone build output:
Docker image: Docker image:
```text ```text
git.wilkensxl.de/MrSphay/watchlink:latest git.wilkensxl.de/mrsphay/watchlink:latest
``` ```
## Security Rules ## Security Rules

View File

@@ -11,7 +11,8 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: 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: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4

View File

@@ -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. - 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`. - 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`. - 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 ## Commands

View File

@@ -6,6 +6,8 @@ RUN npm install
FROM node:22-bookworm-slim AS builder FROM node:22-bookworm-slim AS builder
WORKDIR /app WORKDIR /app
ENV NEXT_TELEMETRY_DISABLED=1 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 --from=deps /app/node_modules ./node_modules
COPY . . COPY . .
RUN npx prisma generate && npm run build RUN npx prisma generate && npm run build

View File

@@ -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: Build and publish the Gitea image:
```bash ```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 login git.wilkensxl.de
docker push git.wilkensxl.de/MrSphay/watchlink:latest docker push git.wilkensxl.de/mrsphay/watchlink:latest
``` ```
<p align="center"><img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" alt="-----------------------------------------------------" width="100%"></p> <p align="center"><img src="https://raw.githubusercontent.com/andreasbm/readme/master/assets/lines/rainbow.png" alt="-----------------------------------------------------" width="100%"></p>
@@ -69,7 +69,7 @@ git@git.wilkensxl.de:MrSphay/WatchLink.git
Target container image: Target container image:
```text ```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. CI expects `REGISTRY_TOKEN` to be configured as a repository or organization secret when image publishing should run.

View File

@@ -33,4 +33,4 @@ npm run dev
docker compose up --build docker compose up --build
``` ```
Target image: `git.wilkensxl.de/MrSphay/watchlink:latest` Target image: `git.wilkensxl.de/mrsphay/watchlink:latest`

View File

@@ -15,7 +15,7 @@ services:
web: web:
build: . build: .
image: git.wilkensxl.de/MrSphay/watchlink:latest image: git.wilkensxl.de/mrsphay/watchlink:latest
depends_on: depends_on:
postgres: postgres:
condition: service_healthy condition: service_healthy

View File

@@ -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. - 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. - 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. - Poll Gitea Actions after the next push once API token access is fixed.

View File

@@ -4,6 +4,6 @@
- [ ] `docker compose up --build` starts app and Postgres. - [ ] `docker compose up --build` starts app and Postgres.
- [ ] First setup works on a clean database. - [ ] First setup works on a clean database.
- [ ] Gitea Actions are green. - [ ] 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. - [ ] README and CHANGELOG are current.
- [ ] No `.env`, tokens, private keys, or local secrets are tracked. - [ ] No `.env`, tokens, private keys, or local secrets are tracked.