From 9bdb743eefc49c7fddbe2bf3a47fd95696d15159 Mon Sep 17 00:00:00 2001 From: samsep101 Date: Mon, 5 Jan 2026 15:22:14 +0500 Subject: [PATCH] bun init --- .gitea/workflows/test.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 32454da..b7cda0c 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -9,33 +9,33 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Build and push with Kaniko + - name: Build and push with Kaniko (FIXED TAGS) uses: aevea/action-kaniko@master with: registry: harbor.apps.kopikopi.com.ru username: ${{ secrets.HARBOR_USERNAME }} password: ${{ secrets.HARBOR_PASSWORD }} image: drone/test - tags: latest,${{ gitea.sha }} + tags: main,latest,${{ gitea.sha }} # Добавляем main и latest context: . - dockerfile: Dockerfile # Убедитесь, что Dockerfile существует! + dockerfile: Dockerfile cache: true - - name: Update infrastructure repository + - name: Update team-infra repository run: | - # Клонируем team-infra - git clone https://${{ secrets.GITEA_USER }}:${{ secrets.GITEA_TOKEN }}@gitea.apps.kopikopi.com.ru/examples/nginx-intrasture.git - cd team-infra + # Клонируем ПРАВИЛЬНЫЙ репозиторий team-infra + git clone https://${{ secrets.USER }}:${{ secrets.GITEA }}@gitea.apps.kopikopi.com.ru/examples/nginx-intrasture.git + cd nginx-intrasture - # Обновляем тег образа в KubeVela Application - sed -i "s|image:.*drone/test:.*|image: harbor.apps.kopikopi.com.ru/drone/test:${{ gitea.sha }}|g" vela-apps/1-simple/static-site.yaml + # Обновляем тег образа на main + sed -i "s|image:.*drone/test:.*|image: harbor.apps.kopikopi.com.ru/drone/test:main|g" apps/static-site/deployment.yaml # Коммитим и пушим git config user.name "CI/CD Bot" git config user.email "ci-cd@kopikopi.com.ru" git add . - git commit -m "Update static-site to ${{ gitea.sha }}" + git commit -m "Update static-site image to main" git push env: - GITEA_USER: ${{ secrets.GITEA_USER }} - GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }} + GITEA_USER: ${{ secrets.USER }} + GITEA_TOKEN: ${{ secrets.GITEA }}