CI: use gitea.actor as registry login username
ci / test (push) Successful in 48s
ci / docker (push) Skipped

Gitea authenticates registry pushes by token alone; a single
REGISTRY_TOKEN secret suffices.
This commit is contained in:
mram
2026-09-20 18:55:46 +02:00
parent 73fb8ac3ad
commit 0f950f3134
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ jobs:
- uses: docker/login-action@v3
with:
registry: git.rambossek.at
username: ${{ secrets.REGISTRY_USERNAME }}
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- uses: docker/build-push-action@v6
+3 -3
View File
@@ -73,9 +73,9 @@ runs `go vet` and `go test -race`, and pushing a semantic-version tag
`git.rambossek.at/<owner>/gpu-turnstile:vX.Y.Z` (and updates `:latest`).
No images are built from branches.
The registry login needs two repository secrets (Settings → Actions →
Secrets): `REGISTRY_USERNAME` and `REGISTRY_TOKEN` — an access token with
`write:package` scope. The automatic `GITEA_TOKEN` cannot push packages.
The registry login needs one repository secret (Settings → Actions →
Secrets): `REGISTRY_TOKEN` — an access token with `write:package` scope.
The automatic `GITEA_TOKEN` cannot push packages.
## Development
+3 -3
View File
@@ -186,9 +186,9 @@ are new.
2. on a version tag only (`vX.Y.Z`, enforced): build the image with buildx
and push it to the Gitea registry
`git.rambossek.at/<owner>/gpu-turnstile` tagged `:<tag>` and `:latest`.
Login uses the repo secrets `REGISTRY_USERNAME` / `REGISTRY_TOKEN` (an
access token with `write:package` scope) because the automatic
`GITEA_TOKEN` cannot push packages.
Login uses the repo secret `REGISTRY_TOKEN` (an access token with
`write:package` scope) because the automatic `GITEA_TOKEN` cannot push
packages; the username is just `gitea.actor`.
- Release: a git tag `vX.Y.Z` produces the versioned image; the Open WebUI
compose pins that tag. No images are built from branches.