Обновить .woodpecker/.woodpecker.yml

This commit is contained in:
parent 448102dbeb
commit c1cf4f33f5

View file

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