From b9203f74f43283394bd1136b7918fbfa9e78e594 Mon Sep 17 00:00:00 2001 From: Overlord Date: Tue, 13 Oct 2026 16:53:51 +0200 Subject: [PATCH] Update Gitea workflows to use `GITEA_TOKEN` and `gitea.actor` for registry login, removing the need for manual secrets. --- .gitea/workflows/images.yml | 16 ++++++++-------- README.md | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/images.yml b/.gitea/workflows/images.yml index 13ee1e0..7aaadc4 100644 --- a/.gitea/workflows/images.yml +++ b/.gitea/workflows/images.yml @@ -27,8 +27,8 @@ jobs: - name: Log in to the registry run: > - echo "${{ secrets.REGISTRY_TOKEN }}" - | docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin + echo "${{ secrets.GITEA_TOKEN }}" + | docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin - name: Build and push run: | @@ -44,8 +44,8 @@ jobs: - name: Log in to the registry run: > - echo "${{ secrets.REGISTRY_TOKEN }}" - | docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin + echo "${{ secrets.GITEA_TOKEN }}" + | docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin - name: Build and push run: | @@ -61,8 +61,8 @@ jobs: - name: Log in to the registry run: > - echo "${{ secrets.REGISTRY_TOKEN }}" - | docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin + echo "${{ secrets.GITEA_TOKEN }}" + | docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin - name: Build and push run: | @@ -78,8 +78,8 @@ jobs: - name: Log in to the registry run: > - echo "${{ secrets.REGISTRY_TOKEN }}" - | docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin + echo "${{ secrets.GITEA_TOKEN }}" + | docker login "${REGISTRY%%/*}" -u "${{ gitea.actor }}" --password-stdin - name: Build and push run: | diff --git a/README.md b/README.md index f56bccf..a30b642 100644 --- a/README.md +++ b/README.md @@ -185,8 +185,8 @@ corepack pnpm test Node runs the TypeScript sources directly. Gitea Actions checks every push to `develop` and `master` and builds the images `homepage-sandbox`, `homepage-spawner`, `homepage-backend` and `homepage-jobs`, tagged with the -commit and the branch. The workflow needs the secrets `REGISTRY_USER` and -`REGISTRY_TOKEN`. +commit and the branch. It logs in to the registry with the automatic token +of each run, so it needs no secrets. ## License