From 8b7b90f0c243d07bb86d6ef29e71cb9c90e3968d Mon Sep 17 00:00:00 2001 From: samsep101 Date: Mon, 5 Jan 2026 16:29:58 +0500 Subject: [PATCH] bun init --- .gitea/workflows/test.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 0632ab9..51a19f5 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -40,17 +40,11 @@ jobs: git clone https://${{ secrets.USER }}:${{ secrets.GITEA }}@gitea.apps.kopikopi.com.ru/examples/nginx-intrasture.git cd nginx-intrasture/apps/static-site - # Устанавливаем Kustomize - curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash - - # Обновляем тег образа через Kustomize (самый надежный способ) - ./kustomize edit set image drone/test=harbor.apps.kopikopi.com.ru/drone/test:${{ steps.vars.outputs.sha_short }} - cat ./* - # Альтернатива: используем yq для точного редактирования - # wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O yq - # chmod +x yq - # ./yq eval -i '.images[0].newTag = "${{ steps.vars.outputs.sha_short }}"' kustomization.yaml - + wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O yq + chmod +x yq + + # Обновляем ТЕГ образа в deployment.yaml (не только в kustomization.yaml) + ./yq eval -i '.spec.template.spec.containers[0].image = "harbor.apps.kopikopi.com.ru/drone/test:'${{ steps.vars.outputs.sha_short }}'"' deployment.yaml # Коммитим и пушим git config user.name "CI/CD Bot" git config user.email "ci-cd@kopikopi.com.ru"