Обновить .woodpecker/.woodpecker.yml
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
dccf1ad4e2
commit
acc154df36
1 changed files with 0 additions and 33 deletions
|
|
@ -14,31 +14,19 @@ steps:
|
||||||
- git lfs install
|
- git lfs install
|
||||||
- git clone https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets.git
|
- git clone https://s.galanskiy:${GONETS}@dev.gossys.dev/s.galanskiy/gonets.git
|
||||||
|
|
||||||
install_deps:
|
|
||||||
image: workflow
|
|
||||||
commands:
|
|
||||||
- apt update
|
- apt update
|
||||||
- apt install -y python3
|
- apt install -y python3
|
||||||
- python3 --version
|
- python3 --version
|
||||||
|
|
||||||
prepare_python_deps:
|
|
||||||
image: debian:latest
|
|
||||||
commands:
|
|
||||||
- python3 --version
|
- python3 --version
|
||||||
- cd gonets/SRV
|
- cd gonets/SRV
|
||||||
- curl -sSL https://install.python-poetry.org | python3 -
|
- curl -sSL https://install.python-poetry.org | python3 -
|
||||||
- rm -f requirements.txt
|
- rm -f requirements.txt
|
||||||
- poetry export -f requirements.txt --output requirements.txt --without-hashes
|
- poetry export -f requirements.txt --output requirements.txt --without-hashes
|
||||||
|
|
||||||
build_backend:
|
|
||||||
image: debian:latest
|
|
||||||
commands:
|
|
||||||
- cd gonets/SRV
|
- cd gonets/SRV
|
||||||
- poetry install
|
- poetry install
|
||||||
|
|
||||||
build_frontend:
|
|
||||||
image: debian:latest
|
|
||||||
commands:
|
|
||||||
- cd gonets/FRONT/DEV
|
- cd gonets/FRONT/DEV
|
||||||
- npm install
|
- npm install
|
||||||
- npm run package
|
- npm run package
|
||||||
|
|
@ -52,21 +40,12 @@ steps:
|
||||||
- cd ../..
|
- cd ../..
|
||||||
- rm -rf DEV
|
- rm -rf DEV
|
||||||
|
|
||||||
prepare_debian:
|
|
||||||
image: debian:latest
|
|
||||||
commands:
|
|
||||||
- cd gonets
|
- cd gonets
|
||||||
- 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.*
|
||||||
|
|
||||||
clone_debian_config:
|
|
||||||
image: debian:latest
|
|
||||||
environment:
|
|
||||||
GONETS:
|
|
||||||
from_secret: GONETS
|
|
||||||
commands:
|
|
||||||
- cd /woodpecker/src
|
- cd /woodpecker/src
|
||||||
- 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
|
||||||
- mv gonets-debian-template/changelog gonets/debian/
|
- mv gonets-debian-template/changelog gonets/debian/
|
||||||
|
|
@ -77,25 +56,13 @@ steps:
|
||||||
- mv gonets-debian-template/postrm gonets/debian/
|
- mv gonets-debian-template/postrm gonets/debian/
|
||||||
- mv gonets-debian-template/rules gonets/debian/
|
- mv gonets-debian-template/rules gonets/debian/
|
||||||
|
|
||||||
build_package:
|
|
||||||
image: debian:latest
|
|
||||||
commands:
|
|
||||||
- cd gonets
|
- cd gonets
|
||||||
- dpkg-buildpackage -us -uc -b
|
- dpkg-buildpackage -us -uc -b
|
||||||
|
|
||||||
get_version:
|
|
||||||
image: debian:latest
|
|
||||||
commands:
|
|
||||||
- cd gonets
|
- 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
|
||||||
|
|
||||||
commit_changes:
|
|
||||||
image: debian:latest
|
|
||||||
environment:
|
|
||||||
GONETS:
|
|
||||||
from_secret: GONETS
|
|
||||||
commands:
|
|
||||||
- cd gonets
|
- cd gonets
|
||||||
- source version.env
|
- source version.env
|
||||||
- git config user.name "s.galanskiy"
|
- git config user.name "s.galanskiy"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue