From 8deb647b52777c033770ec9bacc051d17914cbf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nikola=20Dere=C5=BEi=C4=87?= Date: Fri, 9 Jan 2026 11:48:17 +0100 Subject: [PATCH] Add registry authentication using Gitea automatic secrets Use GITEA_ACTOR and GITEA_TOKEN for Docker registry login. These secrets are automatically provided by Gitea Actions and require no manual configuration. Co-Authored-By: Claude Sonnet 4.5 --- .gitea/workflows/build.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 09e61aa..0126cab 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -28,6 +28,13 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Login to Registry + # Gitea automatically provides these secrets: + # - GITEA_ACTOR - The username of the user who triggered the workflow + # - GITEA_TOKEN - An automatically generated token with appropriate permissions + run: | + echo "${{ secrets.GITEA_TOKEN }}" | docker login registry.budakova.org -u "${{ secrets.GITEA_ACTOR }}" --password-stdin + - name: Build and push Docker image uses: docker/build-push-action@v5 with: