Обновить .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: steps:
checkout_and_install: all_in_one:
image: debian:latest 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: commands:
- echo '=== Checkout and install dependencies ==='
- git clone --depth 0 --branch main . . - git clone --depth 0 --branch main . .
- apt update - apt update
- apt install -y python3 python3-pip python3-poetry nodejs npm debhelper devscripts build-essential fakeroot dh-make dpkg-dev - apt install -y python3 python3-pip python3-poetry nodejs npm debhelper devscripts build-essential fakeroot dh-make dpkg-dev
prepare_python_deps: - echo '=== Prepare python dependencies ==='
commands:
- cd SRV - cd SRV
- 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:
commands:
- cd SRV
- poetry install - poetry install
- cd ..
build_frontend: - echo '=== Build frontend ==='
commands:
- cd FRONT/DEV - cd FRONT/DEV
- npm install - npm install
- npm run package - npm run package
@ -32,17 +34,14 @@ steps:
- cd ../.. - cd ../..
- rm -rf DEV - rm -rf DEV
prepare_debian: - echo '=== Prepare debian package ==='
commands:
- DEBEMAIL="devteam@gossys.dev" DEBFULLNAME="GOSSYS LLC" dh_make --createorig - DEBEMAIL="devteam@gossys.dev" DEBFULLNAME="GOSSYS LLC" dh_make --createorig
- cd debian/ - cd debian/
- rm -f *.ex - rm -f *.ex
- rm -f README.* - rm -f README.*
- cd ..
clone_debian_config: - echo '=== Clone debian configuration ==='
environment:
GONETS: your_token_here
commands:
- 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/
- mv gonets-debian-template/control 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/postrm gonets/debian/
- mv gonets-debian-template/rules gonets/debian/ - mv gonets-debian-template/rules gonets/debian/
build_package: - echo '=== Build package ==='
commands:
- dpkg-buildpackage -us -uc -b - dpkg-buildpackage -us -uc -b
get_version: - echo '=== Get version from changelog ==='
commands:
- 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: - echo '=== Commit changes to develop ==='
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:
- source version.env - source version.env
- git config user.name "$GIT_AUTHOR_NAME" - git config user.name "$GIT_AUTHOR_NAME"
- git config user.email "$GIT_AUTHOR_EMAIL" - git config user.email "$GIT_AUTHOR_EMAIL"