From 39d691dc5a79186e715804ab06c7e295f30e1cad Mon Sep 17 00:00:00 2001 From: "s.galanskiy" Date: Mon, 30 Jun 2025 14:00:04 +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 | 47 +++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 26 deletions(-) diff --git a/.woodpecker/.woodpecker.yml b/.woodpecker/.woodpecker.yml index 5236779..c131992 100644 --- a/.woodpecker/.woodpecker.yml +++ b/.woodpecker/.woodpecker.yml @@ -16,7 +16,6 @@ steps: - apt update - apt install -y git git-lfs - git lfs install - - git clone https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets.git -b main # УСТАНОВКА НЕОБХОДИМЫХ ЗАВИСИМОСТЕЙ НА СИСТЕМЕ - apt update @@ -36,65 +35,61 @@ steps: - echo 'export PATH="$HOME/.local/bin:$PATH"' >> /root/.bashrc - . /root/.bashrc - poetry --version - - cd gonets/SRV + - cd SRV - poetry env activate - poetry add poetry-plugin-export - poetry install - poetry self update - rm -f requirements.txt - poetry run poetry export -f requirements.txt --output requirements.txt --without-hashes - - pwd # ПОДГОТОВКА И СБОРКА FRONTEND ЧАСТИ GONETS - - cd / - - cd woodpecker - - tree - pwd - - cd gonets/FRONT/DEV + - cd .. + - pwd + - cd FRONT/DEV + - pwd - npm install - npm run package - cd dist/gonets-linux-x64/resources/app + - pwd - npm run build - sed -i 's/href="\/assets\//href=".\/assets\//g' dist/index.html - sed -i 's/src="\/assets\//src=".\/assets\//g' dist/index.html - cd ../../../.. - - rm -rf FRONT/BUILD/* - - cp -r dist/gonets-linux-x64/* ../../BUILD/ - - cd ../.. + - pwd + - rm -rf BUILD/* + - cp -r DEV/dist/gonets-linux-x64/* BUILD/ - rm -rf DEV # ИНИЦИАЛИЗАЦИЯ DEBIAN КОНФИГУРАЦИЙ ДЛЯ СБОРКИ - - cd / - - cd gonets + - cd .. + - pwd - DESKTOP=1 DEBEMAIL="devteam@gossys.dev" DEBFULLNAME="GOSSYS LLC" dh_make --single -y - cd debian/ - rm -f *.ex - rm -f README.* # КЛОНИРОВАНИЕ НЕОБХОДИМЫХ ШАБЛОНОВ КОНФИГОВ ДЕБИАНА ДЛЯ СБОРКИ - - git clone https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets-debian-template.git - - mv gonets-debian-template/changelog gonets/debian/ - - mv gonets-debian-template/control gonets/debian/ - - mv gonets-debian-template/copyright gonets/debian/ - - mv gonets-debian-template/install gonets/debian/ - - mv gonets-debian-template/postinst gonets/debian/ - - mv gonets-debian-template/postrm gonets/debian/ - - mv gonets-debian-template/rules gonets/debian/ + - git clone https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets-debian-template.git /woodpecker/src/dev.gossys.dev/s.galanskiy + - mv /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets-debian-template/changelog /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets/debian/ + - mv /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets-debian-template/control /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets/debian/ + - mv /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets-debian-template/copyright /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets/debian/ + - mv /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets-debian-template/install /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets/debian/ + - mv /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets-debian-template/postinst /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets/debian/ + - mv /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets-debian-template/postrm /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets/debian/ + - mv /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets-debian-template/rules /woodpecker/src/dev.gossys.dev/s.galanskiy/gonets/debian/ # СБОРКА ДЕБИАН ПАКЕТА - - cd / - - cd gonets + - cd .. + - pwd - dpkg-buildpackage -us -uc -b # ИЗВЛЕЧЕНИЕ ВЕРСИИ ПАКЕТА ДЛЯ КОММИТА - - cd / - - cd gonets - VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field Version) - echo "VERSION=$VERSION" > version.env # КОММИТ И ТЕГ НА ВЕТКУ DEVELOP - - cd / - - cd gonets - source version.env - git config user.name "s.galanskiy" - git config user.email "s.galanskiy@gossys.dev"