fix: use gitea job token for registry push
Deploy Telegram Bot / build-and-push (push) Failing after 18s
Deploy Telegram Bot / deploy (push) Has been skipped

This commit is contained in:
2026-04-24 18:09:12 +03:00
parent f45985041b
commit a5ba4111cf
+6 -2
View File
@@ -5,6 +5,10 @@ on:
branches: branches:
- main - main
permissions:
contents: read
packages: write
env: env:
VERSION: 1.3.0 VERSION: 1.3.0
@@ -21,7 +25,7 @@ jobs:
with: with:
registry: git.codeanddice.ru # НАПРИМЕР: gitea.my-server.com registry: git.codeanddice.ru # НАПРИМЕР: gitea.my-server.com
username: toutsu username: toutsu
password: ${{ secrets.GIT_TOKEN }} password: ${{ secrets.GITEA_TOKEN }}
- name: Build and push Bot - name: Build and push Bot
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@@ -64,7 +68,7 @@ jobs:
- name: Deploy Containers - name: Deploy Containers
run: | run: |
# Авторизуемся локальным докером в нашей Gitea # Авторизуемся локальным докером в нашей Gitea
docker login git.codeanddice.ru/ -u toutsu -p ${{ secrets.GIT_TOKEN }} docker login git.codeanddice.ru/ -u toutsu -p ${{ secrets.GITEA_TOKEN }}
# Pull гарантирует, что мы получили нужную версию. # Pull гарантирует, что мы получили нужную версию.
docker compose pull bot web docker compose pull bot web