From d81089edf2c132ca76d3a5dddfc75f283eaae3fa Mon Sep 17 00:00:00 2001 From: "chris.dumas" Date: Fri, 2 Oct 2026 21:58:54 +0000 Subject: [PATCH] Use authenticated registry secrets for image publishing --- .gitea/workflows/deploy.yml | 6 +++--- README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f21c236..4ea1a7d 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -41,8 +41,8 @@ jobs: env: DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} DEPLOY_USER: ${{ secrets.DEPLOY_USER }} - REGISTRY_USERNAME: ${{ gitea.actor }} - REGISTRY_PASSWORD: ${{ secrets.GITEA_TOKEN }} + REGISTRY_USERNAME: ${{ secrets.REGISTRY_USERNAME }} + REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} GITEA_REF: ${{ gitea.ref }} GITEA_SHA: ${{ gitea.sha }} run: | @@ -59,7 +59,7 @@ jobs: IMAGE_REF=git.dumas.ddns.net/chris.dumas/comfyui-portal-next:sha-${GITEA_SHA} if [ -z "$REGISTRY_USERNAME" ] || [ -z "$REGISTRY_PASSWORD" ]; then - echo 'Gitea Actions token is unavailable for registry authentication' + echo 'REGISTRY_USERNAME and REGISTRY_PASSWORD are required for registry authentication' exit 1 fi diff --git a/README.md b/README.md index 46ccb1d..12aab40 100644 --- a/README.md +++ b/README.md @@ -15,4 +15,4 @@ The first run seeds `data/users.json` from `ADMIN_USERNAME` and `ADMIN_PASSWORD` Gitea Actions deploys `develop`, `qa`, and `main` to the existing ComfyUiPortal target directories and preserves the existing 7002/6002/5002 port contract. On first startup of a fresh data directory, provide `ADMIN_USERNAME` and `ADMIN_PASSWORD` in the deployment host environment. Existing target data is retained during repository cutover. -The deployment workflow builds an immutable image tagged with the source commit SHA and publishes it to the Gitea container registry. If that SHA-tagged image already exists, the workflow reuses it instead of rebuilding. The workflow uses Gitea's built-in `GITEA_TOKEN` with package-write permission. Compose receives the exact image reference through `IMAGE_REF`, so the same artifact can be redeployed or promoted without rebuilding. +The deployment workflow builds an immutable image tagged with the source commit SHA and publishes it to the Gitea container registry. If that SHA-tagged image already exists, the workflow reuses it instead of rebuilding. Configure the masked `REGISTRY_USERNAME` and `REGISTRY_PASSWORD` repository Actions secrets with a Gitea account/token that can write container packages. Compose receives the exact image reference through `IMAGE_REF`, so the same artifact can be redeployed or promoted without rebuilding.