From 3e312f39604e1596bf3de0471414b12298486b27 Mon Sep 17 00:00:00 2001 From: Neru_Han Date: Fri, 21 Aug 2026 18:23:19 +0900 Subject: [PATCH] ci: add OCI image source label for automatic Gitea package linkage --- .cline-context.md | 2 +- .gitea/workflows/docker-build.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.cline-context.md b/.cline-context.md index 9bbe7aa..c9e7d3e 100644 --- a/.cline-context.md +++ b/.cline-context.md @@ -27,7 +27,7 @@ - Configured production multi-stage `Dockerfile` with standalone Next.js runner, Prisma CLI migrations support, and automated `docker-entrypoint.sh` startup script. - Added `.dockerignore` for minimal context transfer and fast build times. - Refined `docker-compose.yml` and `.env.example` to support prebuilt registry images (`CHECKFLOW_IMAGE`) and automated database migrations. - - Automated Gitea Actions CI workflow (`.gitea/workflows/docker-build.yaml`) for building & pushing container images to Gitea Container Registry with lowercase repository name normalization (`env.REPO`). + - Automated Gitea Actions CI workflow (`.gitea/workflows/docker-build.yaml`) for building & pushing container images to Gitea Container Registry with lowercase repository name normalization (`env.REPO`) and OCI source labels (`org.opencontainers.image.source`) for automatic repository package linkage. - Completely revamped `README.md` to reflect project design philosophy, architecture, Docker setup, and open-standard CalDAV sync guidelines. - Validated that `npm run lint` and `npm run build` execute with 0 errors and 0 warnings. diff --git a/.gitea/workflows/docker-build.yaml b/.gitea/workflows/docker-build.yaml index 2e44c30..09bede4 100644 --- a/.gitea/workflows/docker-build.yaml +++ b/.gitea/workflows/docker-build.yaml @@ -34,6 +34,8 @@ jobs: with: context: . push: true + labels: | + org.opencontainers.image.source=https://${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}/${{ gitea.repository }} tags: | ${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}/${{ env.REPO }}:latest ${{ secrets.DOCKER_REGISTRY || 'gitea.example.com' }}/${{ env.REPO }}:${{ gitea.sha }}