From 29ea5bf7d4ac1ef4dd309114fe6ec66c069f42e2 Mon Sep 17 00:00:00 2001 From: "s.galanskiy" Date: Wed, 2 Jul 2025 11:17:58 +0500 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20.woodpecker/.woodpecker.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .woodpecker/.woodpecker.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.woodpecker/.woodpecker.yml b/.woodpecker/.woodpecker.yml index ac1f30d..c980e71 100644 --- a/.woodpecker/.woodpecker.yml +++ b/.woodpecker/.woodpecker.yml @@ -1,3 +1,9 @@ +clone: + git: + image: woodpeckerci/plugin-git + settings: + lfs: true + when: event: [push, tag] branch: main @@ -5,21 +11,19 @@ when: steps: checkout: image: debian:latest - environment: + environment: GONETS: from_secret: GONETS commands: - # ПОДГОТОВКА ГИТА И КЛОНИРОВАНИЕ GONETS - - echo $${GONETS} - apt update - apt install -y git git-lfs - git lfs install - - echo "GONETS=${GONETS}" + - echo "GONETS=${GONETS:0:4}" + - test -n "${GONETS}" || (echo "Ошибка: GONETS пустая" && exit 1) - git config user.name "s.galanskiy" - git config user.email "s.galanskiy@gossys.dev" + - git remote set-url origin https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets.git - git fetch --all - - git branch -r - - git reset --hard - - git clean -fd - git checkout develop - - git push -u origin develop + - git commit --allow-empty -m "Тестовый коммит" + - git push -u origin develop \ No newline at end of file