From 5f3516e703bb84d367d052dd6e9f696843f3a46b Mon Sep 17 00:00:00 2001 From: Toutsu Date: Fri, 24 Apr 2026 18:20:15 +0300 Subject: [PATCH] fix: push registry images with docker cli --- .gitea/workflows/deploy.yml | 50 +++++++++++++++++++------------------ 1 file changed, 26 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f6bf6b7..e73b06f 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -23,31 +23,33 @@ jobs: username: toutsu password: ${{ secrets.GIT_TOKEN }} - - name: Build and push Bot - uses: docker/build-push-action@v5 - with: - context: . - file: src/GmRelay.Bot/Dockerfile - push: true - provenance: false - 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 Bot image + run: | + docker build \ + --label "org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}" \ + -f src/GmRelay.Bot/Dockerfile \ + -t git.codeanddice.ru/toutsu/gmrelay-bot:latest \ + -t git.codeanddice.ru/toutsu/gmrelay-bot:${{ env.VERSION }} \ + . - - name: Build and push Web - uses: docker/build-push-action@v5 - with: - context: . - file: src/GmRelay.Web/Dockerfile - push: true - provenance: false - tags: | - git.codeanddice.ru/toutsu/gmrelay-web:latest - git.codeanddice.ru/toutsu/gmrelay-web:${{ env.VERSION }} - labels: | - org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }} + - name: Push Bot image + run: | + docker push git.codeanddice.ru/toutsu/gmrelay-bot:latest + docker push git.codeanddice.ru/toutsu/gmrelay-bot:${{ env.VERSION }} + + - name: Build Web image + run: | + docker build \ + --label "org.opencontainers.image.source=https://git.codeanddice.ru/${{ gitea.repository }}" \ + -f src/GmRelay.Web/Dockerfile \ + -t git.codeanddice.ru/toutsu/gmrelay-web:latest \ + -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: Запускаем эти образы на самом сервере deploy: