diff --git a/.gitea/workflows/build-container.yml b/.gitea/workflows/build-container.yml index a07f091..e923100 100644 --- a/.gitea/workflows/build-container.yml +++ b/.gitea/workflows/build-container.yml @@ -23,8 +23,11 @@ jobs: run: apk add --no-cache nodejs git docker-cli docker-cli-buildx - name: Checkout uses: actions/checkout@v4 + # The automatic Actions token can't log in to the container registry, so + # this uses a personal access token with only the write:package scope, + # stored as the repository secret REGISTRY_TOKEN. - name: Log in to the Gitea registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login "$REGISTRY" -u "${{ github.actor }}" --password-stdin + run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "$REGISTRY" -u "${{ github.repository_owner }}" --password-stdin - name: Use the BuildKit socket run: docker buildx create --name ci --driver remote "$BUILDKIT" --use - name: Build and push