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