Обновить .woodpecker/.woodpecker.yml
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
parent 957a284ea7
commit 39d691dc5a

View file

@ -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"