fix: write registry auth directly to docker config.json instead of login
Some checks failed
CI/CD Pipeline / build-and-deploy (push) Failing after 16s

This commit is contained in:
vrubel 2026-06-06 21:51:28 +00:00
parent 84df43a0d2
commit 39540b0703

View file

@ -34,8 +34,11 @@ jobs:
- name: Stop container
run: docker compose down
- name: Login to Gitea Container Registry
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login http://192.168.8.174:3000 -u "${{ secrets.REGISTRY_USER }}" --password-stdin
- name: Setup registry auth
run: |
mkdir -p ~/.docker
AUTH=$(echo -n "${{ secrets.REGISTRY_USER }}:${{ secrets.REGISTRY_TOKEN }}" | base64 -w0)
echo "{\"auths\":{\"http://192.168.8.174:3000\":{\"auth\":\"$AUTH\"}}}" > ~/.docker/config.json
- name: Push image to registry
run: docker push 192.168.8.174:3000/vrubel/t2s-telegram-bot:latest