From 1b0fa5e500e1d1a26cb1102785d1a5072d92d9a2 Mon Sep 17 00:00:00 2001 From: erjemin Date: Wed, 1 Apr 2026 00:04:12 +0300 Subject: [PATCH] =?UTF-8?q?build:=20=D0=B8=D0=B3=D0=BD=D0=BE=D1=80=D0=B8?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20copilotDiffState.xml=20(?= =?UTF-8?q?=D0=BB=D0=BE=D0=BA=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=D0=B5=20=D1=81?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D0=BE=D1=8F=D0=BD=D0=B8=D0=B5=20GitHub=20Cop?= =?UTF-8?q?ilot=20IDE)=20-=20=D0=A3=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=20copilo?= =?UTF-8?q?tDiffState.xml=20=D0=B8=D0=B7=20git=20=D0=B8=D1=81=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=B8=20-=20=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D0=BE?= =?UTF-8?q?=20=D0=B2=20.gitignore=20=D0=B4=D0=BB=D1=8F=20=D0=B8=D0=B3?= =?UTF-8?q?=D0=BD=D0=BE=D1=80=D0=B8=D1=80=D0=BE=D0=B2=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D1=8D=D1=82=D0=BE=D0=B3=D0=BE=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB=D0=B0=20-=20=D0=AD=D1=82=D0=BE=20=D0=BB=D0=BE=D0=BA?= =?UTF-8?q?=D0=B0=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D1=81=D0=BB=D1=83=D0=B6?= =?UTF-8?q?=D0=B5=D0=B1=D0=BD=D1=8B=D0=B9=20=D1=84=D0=B0=D0=B9=D0=BB=20PyC?= =?UTF-8?q?harm,=20=D1=81=D0=BF=D0=B5=D1=86=D0=B8=D1=84=D0=B8=D1=87=D0=BD?= =?UTF-8?q?=D1=8B=D0=B9=20=D0=B4=D0=BB=D1=8F=20=D0=BC=D0=B0=D1=88=D0=B8?= =?UTF-8?q?=D0=BD=D1=8B=20=D1=80=D0=B0=D0=B7=D1=80=D0=B0=D0=B1=D0=BE=D1=82?= =?UTF-8?q?=D1=87=D0=B8=D0=BA=D0=B0=20-=20=D0=9D=D0=B5=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=BB=D0=B6=D0=B5=D0=BD=20=D0=BF=D0=BE=D0=BF=D0=B0=D0=B4=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20=D0=B2=20=D1=80=D0=B5=D0=BF=D0=BE=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B8=D0=B9=20=D0=B8=20=D0=B7=D0=B0=D0=B3?= =?UTF-8?q?=D1=80=D1=8F=D0=B7=D0=BD=D1=8F=D1=82=D1=8C=20git=20history?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/docker-publish.yaml | 58 +++++++++++++++++++ .gitignore | 3 + .idea/copilotDiffState.xml | 27 --------- .../pet-clones--external-nginx.conf} | 0 4 files changed, 61 insertions(+), 27 deletions(-) create mode 100644 .gitea/workflows/docker-publish.yaml delete mode 100644 .idea/copilotDiffState.xml rename config/{pets-clone--nginx.conf => nginx/pet-clones--external-nginx.conf} (100%) diff --git a/.gitea/workflows/docker-publish.yaml b/.gitea/workflows/docker-publish.yaml new file mode 100644 index 0000000..9518736 --- /dev/null +++ b/.gitea/workflows/docker-publish.yaml @@ -0,0 +1,58 @@ +name: Build and Push PetClones-site + +on: + push: + # Запускать только при создании тега, начинающегося с 'v' (например, v1.0.0) + tags: + - 'v*' + +jobs: + build-and-push: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + # Генерируем метаданные (теги) для Docker + - name: Docker meta + id: meta + uses: docker/metadata-action@v4 + with: + # Важно: используем gitea.repository + images: git.cube2.ru/${{ gitea.repository }} + tags: | + type=ref,event=tag + type=raw,value=latest,enable=${{ gitea.ref_type == 'tag' }} + + # Логин в реестр Gitea + - name: Login to Gitea Registry + uses: docker/login-action@v2 + with: + registry: git.cube2.ru + # Важно: используем gitea.actor + username: ${{ gitea.actor }} + password: ${{ secrets.REGISTRY_PASSWORD }} + + # Сборка и отправка образа + - name: Build and push image PetClones-site + uses: docker/build-push-action@v4 + with: + context: . + file: Dockerfile + # platforms: linux/amd64 + platforms: linux/amd64,linux/arm64 + push: true + # Используем теги, сгенерированные шагом meta (v0.1.0 и latest) + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + # Кэширование для ускорения повторных сборок + cache-from: type=gha + cache-to: type=gha,mode=max + # Увеличиваем тайм-аут на случай медленного интернета + timeout: 1800 # 30 минут diff --git a/.gitignore b/.gitignore index 476dafa..9c8831b 100644 --- a/.gitignore +++ b/.gitignore @@ -24,6 +24,9 @@ .idea/**/uiDesigner.xml .idea/**/dbnavigator.xml +# IDE - GitHub Copilot state (local IDE state, not needed in repo) +.idea/copilotDiffState.xml + # Gradle .idea/**/gradle.xml .idea/**/libraries diff --git a/.idea/copilotDiffState.xml b/.idea/copilotDiffState.xml deleted file mode 100644 index 3747414..0000000 --- a/.idea/copilotDiffState.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/config/pets-clone--nginx.conf b/config/nginx/pet-clones--external-nginx.conf similarity index 100% rename from config/pets-clone--nginx.conf rename to config/nginx/pet-clones--external-nginx.conf