fix: push registry images with docker cli
Deploy Telegram Bot / build-and-push (push) Successful in 1m7s
Deploy Telegram Bot / deploy (push) Successful in 13s

This commit is contained in:
2026-04-24 18:20:15 +03:00
parent 2eb7d86e48
commit 5f3516e703
+26 -24
View File
@@ -23,31 +23,33 @@ jobs:
username: toutsu username: toutsu
password: ${{ secrets.GIT_TOKEN }} password: ${{ secrets.GIT_TOKEN }}
- name: Build and push Bot - name: Build Bot image
uses: docker/build-push-action@v5 run: |
with: docker build \
context: . --label "org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}" \
file: src/GmRelay.Bot/Dockerfile -f src/GmRelay.Bot/Dockerfile \
push: true -t git.codeanddice.ru/toutsu/gmrelay-bot:latest \
provenance: false -t git.codeanddice.ru/toutsu/gmrelay-bot:${{ env.VERSION }} \
tags: | .
git.codeanddice.ru/toutsu/gmrelay-bot:latest
git.codeanddice.ru/toutsu/gmrelay-bot:${{ env.VERSION }}
labels: |
org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}
- name: Build and push Web - name: Push Bot image
uses: docker/build-push-action@v5 run: |
with: docker push git.codeanddice.ru/toutsu/gmrelay-bot:latest
context: . docker push git.codeanddice.ru/toutsu/gmrelay-bot:${{ env.VERSION }}
file: src/GmRelay.Web/Dockerfile
push: true - name: Build Web image
provenance: false run: |
tags: | docker build \
git.codeanddice.ru/toutsu/gmrelay-web:latest --label "org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}" \
git.codeanddice.ru/toutsu/gmrelay-web:${{ env.VERSION }} -f src/GmRelay.Web/Dockerfile \
labels: | -t git.codeanddice.ru/toutsu/gmrelay-web:latest \
org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }} -t git.codeanddice.ru/toutsu/gmrelay-web:${{ env.VERSION }} \
.
- name: Push Web image
run: |
docker push git.codeanddice.ru/toutsu/gmrelay-web:latest
docker push git.codeanddice.ru/toutsu/gmrelay-web:${{ env.VERSION }}
# ЧАСТЬ 2: Запускаем эти образы на самом сервере # ЧАСТЬ 2: Запускаем эти образы на самом сервере
deploy: deploy: