From 5e864dfcd618b06672c943e7b57a67c0aa77c93b Mon Sep 17 00:00:00 2001 From: Sidney Date: Wed, 22 Apr 2026 22:11:18 -0300 Subject: [PATCH] =?UTF-8?q?Usa=20arquivo=20config.json=20customizado=20par?= =?UTF-8?q?a=20for=C3=A7ar=20a=20autentica=C3=A7=C3=A3o=20do=20Watchtower?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9019266..636561f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -45,10 +45,13 @@ jobs: - name: Atualizar Containers em Produção (Watchtower) run: | + # Cria um arquivo de autenticacao do Docker manual (A prova de bloqueios de permissão) + AUTH=$(echo -n "${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}" | base64 -w 0) + echo "{\"auths\": {\"ghcr.io\": {\"auth\": \"$AUTH\"}}}" > $(pwd)/ghcr-config.json + docker run --rm \ -e DOCKER_API_VERSION=1.44 \ - -e REPO_USER=${{ github.actor }} \ - -e REPO_PASS=${{ secrets.GITHUB_TOKEN }} \ -v /var/run/docker.sock:/var/run/docker.sock \ + -v $(pwd)/ghcr-config.json:/config.json \ containrrr/watchtower \ --run-once --cleanup --debug