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

This commit is contained in:
parent c1cf4f33f5
commit e64b5eeac4

View file

@ -1,24 +1,26 @@
steps:
checkout_and_install:
all_in_one:
image: debian:latest
environment:
GONETS: your_token_here
GIT_AUTHOR_NAME: s.galanskiy
GIT_AUTHOR_EMAIL: s.galanskiy@gossys.dev
GIT_COMMITTER_NAME: s.galanskiy
GIT_COMMITTER_EMAIL: s.galanskiy@gossys.dev
commands:
- echo '=== Checkout and install dependencies ==='
- git clone --depth 0 --branch main . .
- apt update
- apt install -y python3 python3-pip python3-poetry nodejs npm debhelper devscripts build-essential fakeroot dh-make dpkg-dev
prepare_python_deps:
commands:
- echo '=== Prepare python dependencies ==='
- cd SRV
- rm -f requirements.txt
- poetry export -f requirements.txt --output requirements.txt --without-hashes
build_backend:
commands:
- cd SRV
- poetry install
- cd ..
build_frontend:
commands:
- echo '=== Build frontend ==='
- cd FRONT/DEV
- npm install
- npm run package
@ -32,17 +34,14 @@ steps:
- cd ../..
- rm -rf DEV
prepare_debian:
commands:
- echo '=== Prepare debian package ==='
- DEBEMAIL="devteam@gossys.dev" DEBFULLNAME="GOSSYS LLC" dh_make --createorig
- cd debian/
- rm -f *.ex
- rm -f README.*
- cd ..
clone_debian_config:
environment:
GONETS: your_token_here
commands:
- echo '=== Clone debian configuration ==='
- 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/
@ -52,22 +51,14 @@ steps:
- mv gonets-debian-template/postrm gonets/debian/
- mv gonets-debian-template/rules gonets/debian/
build_package:
commands:
- echo '=== Build package ==='
- dpkg-buildpackage -us -uc -b
get_version:
commands:
- echo '=== Get version from changelog ==='
- VERSION=$(dpkg-parsechangelog -l./debian/changelog --show-field VERSION)
- echo "VERSION=$VERSION" > version.env
commit_changes:
environment:
GIT_AUTHOR_NAME: s.galanskiy
GIT_AUTHOR_EMAIL: s.galanskiy@gossys.dev
GIT_COMMITTER_NAME: s.galanskiy
GIT_COMMITTER_EMAIL: s.galanskiy@gossys.dev
commands:
- echo '=== Commit changes to develop ==='
- source version.env
- git config user.name "$GIT_AUTHOR_NAME"
- git config user.email "$GIT_AUTHOR_EMAIL"