Fix container image publishing
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
```
|
||||
|
||||
<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:
|
||||
|
||||
```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.
|
||||
|
||||
@@ -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`
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user