Настройка сборки образов
Deploy Telegram Bot / build-and-push (push) Failing after 19s
Deploy Telegram Bot / deploy (push) Has been skipped

This commit is contained in:
2026-04-17 14:08:51 +03:00
parent c9c5d1ac2a
commit 700bceae0c
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -16,7 +16,7 @@ jobs:
- name: Login to Gitea Container Registry - name: Login to Gitea Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: https://git.codeanddice.ru # НАПРИМЕР: gitea.my-server.com registry: git.codeanddice.ru # НАПРИМЕР: gitea.my-server.com
username: ${{ gitea.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.GIT_TOKEN }} password: ${{ secrets.GIT_TOKEN }}
@@ -26,7 +26,7 @@ jobs:
context: . context: .
file: src/GmRelay.Bot/Dockerfile file: src/GmRelay.Bot/Dockerfile
push: true push: true
tags: https://git.codeanddice.ru/${{ gitea.actor }}/gmrelay-bot:latest tags: git.codeanddice.ru/${{ gitea.actor }}/gmrelay-bot:latest
- name: Build and push Web - name: Build and push Web
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
@@ -34,7 +34,7 @@ jobs:
context: . context: .
file: src/GmRelay.Web/Dockerfile file: src/GmRelay.Web/Dockerfile
push: true push: true
tags: https://git.codeanddice.ru/${{ gitea.actor }}/gmrelay-web:latest tags: git.codeanddice.ru/${{ gitea.actor }}/gmrelay-web:latest
# ЧАСТЬ 2: Запускаем эти образы на самом сервере # ЧАСТЬ 2: Запускаем эти образы на самом сервере
deploy: deploy:
@@ -53,7 +53,7 @@ jobs:
- name: Deploy Containers - name: Deploy Containers
run: | run: |
# Авторизуемся локальным докером в нашей Gitea # Авторизуемся локальным докером в нашей Gitea
docker login https://git.codeanddice.ru/ -u ${{ gitea.actor }} -p ${{ secrets.GIT_TOKEN }} docker login git.codeanddice.ru/ -u ${{ gitea.actor }} -p ${{ secrets.GIT_TOKEN }}
# Так как раннер на том же сервере, образ уже закэширован, # Так как раннер на том же сервере, образ уже закэширован,
# но pull гарантирует, что compose подхватит именно свежий latest-тег. # но pull гарантирует, что compose подхватит именно свежий latest-тег.
+2 -2
View File
@@ -18,7 +18,7 @@ services:
retries: 10 retries: 10
bot: bot:
image: https://git.codeanddice.ru/toutsu/gmrelay-bot:latest image: git.codeanddice.ru/toutsu/gmrelay-bot:latest
container_name: gmrelay_bot container_name: gmrelay_bot
restart: always restart: always
network_mode: host network_mode: host
@@ -30,7 +30,7 @@ services:
- "Telegram__BotToken=${TELEGRAM_BOT_TOKEN}" - "Telegram__BotToken=${TELEGRAM_BOT_TOKEN}"
web: web:
image: https://git.codeanddice.ru/toutsu/gmrelay-web:latest image: git.codeanddice.ru/toutsu/gmrelay-web:latest
container_name: gmrelay_web container_name: gmrelay_web
restart: always restart: always
network_mode: host network_mode: host