diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 01c1c08..f31f05d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -83,7 +83,7 @@ jobs: with: registry: ${{ env.REGISTRY }} username: ${{ gitea.actor }} - password: ${{ gitea.token }} + password: ${{ secrets.REGISTRY_TOKEN }} # `docker build` simples, no daemon persistente do runner: as camadas e o # cache mount do npm sobrevivem entre execuções. Um buildx criaria um diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 052f210..ca23c6b 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -2,6 +2,8 @@ name: Release # Publica a imagem no registro de containers do Gitea depois de um merge em main, # e de novo com tag semver quando uma tag v* é enviada. O servidor só faz pull. +# Precisa do secret REGISTRY_TOKEN no repositório (token do Gitea com write:package): +# o registro recusa o token do job. on: push: branches: [main] @@ -63,7 +65,7 @@ jobs: with: registry: ${{ env.REGISTRY }} username: ${{ gitea.actor }} - password: ${{ gitea.token }} + password: ${{ secrets.REGISTRY_TOKEN }} - name: Metadados id: meta