CI: use gitea.actor as registry login username
Gitea authenticates registry pushes by token alone; a single REGISTRY_TOKEN secret suffices.
This commit is contained in:
@@ -42,7 +42,7 @@ jobs:
|
|||||||
- uses: docker/login-action@v3
|
- uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.rambossek.at
|
registry: git.rambossek.at
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- uses: docker/build-push-action@v6
|
- uses: docker/build-push-action@v6
|
||||||
|
|||||||
@@ -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`).
|
`git.rambossek.at/<owner>/gpu-turnstile:vX.Y.Z` (and updates `:latest`).
|
||||||
No images are built from branches.
|
No images are built from branches.
|
||||||
|
|
||||||
The registry login needs two repository secrets (Settings → Actions →
|
The registry login needs one repository secret (Settings → Actions →
|
||||||
Secrets): `REGISTRY_USERNAME` and `REGISTRY_TOKEN` — an access token with
|
Secrets): `REGISTRY_TOKEN` — an access token with `write:package` scope.
|
||||||
`write:package` scope. The automatic `GITEA_TOKEN` cannot push packages.
|
The automatic `GITEA_TOKEN` cannot push packages.
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
|||||||
@@ -186,9 +186,9 @@ are new.
|
|||||||
2. on a version tag only (`vX.Y.Z`, enforced): build the image with buildx
|
2. on a version tag only (`vX.Y.Z`, enforced): build the image with buildx
|
||||||
and push it to the Gitea registry
|
and push it to the Gitea registry
|
||||||
`git.rambossek.at/<owner>/gpu-turnstile` tagged `:<tag>` and `:latest`.
|
`git.rambossek.at/<owner>/gpu-turnstile` tagged `:<tag>` and `:latest`.
|
||||||
Login uses the repo secrets `REGISTRY_USERNAME` / `REGISTRY_TOKEN` (an
|
Login uses the repo secret `REGISTRY_TOKEN` (an access token with
|
||||||
access token with `write:package` scope) because the automatic
|
`write:package` scope) because the automatic `GITEA_TOKEN` cannot push
|
||||||
`GITEA_TOKEN` cannot push packages.
|
packages; the username is just `gitea.actor`.
|
||||||
- Release: a git tag `vX.Y.Z` produces the versioned image; the Open WebUI
|
- Release: a git tag `vX.Y.Z` produces the versioned image; the Open WebUI
|
||||||
compose pins that tag. No images are built from branches.
|
compose pins that tag. No images are built from branches.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user