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
Some checks failed
CI/CD Pipeline / build-and-deploy (push) Failing after 16s
This commit is contained in:
parent
84df43a0d2
commit
39540b0703
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue