Обновить .woodpecker/.woodpecker.yml
This commit is contained in:
parent
448102dbeb
commit
c1cf4f33f5
1 changed files with 70 additions and 74 deletions
|
|
@ -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:
|
steps:
|
||||||
- name: Checkout
|
checkout_and_install:
|
||||||
|
image: debian:latest
|
||||||
commands:
|
commands:
|
||||||
- git clone --depth 0 --branch main . .
|
- git clone --depth 0 --branch main . .
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
commands:
|
|
||||||
- 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
|
||||||
|
|
||||||
- name: Prepare python dependencies
|
prepare_python_deps:
|
||||||
commands:
|
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
|
||||||
|
|
||||||
- name: Build backend
|
build_backend:
|
||||||
commands:
|
commands:
|
||||||
- cd SRV
|
- cd SRV
|
||||||
- poetry install
|
- poetry install
|
||||||
|
|
||||||
- name: Build frontend
|
build_frontend:
|
||||||
commands:
|
commands:
|
||||||
- cd FRONT/DEV
|
- cd FRONT/DEV
|
||||||
- npm install
|
- npm install
|
||||||
|
|
@ -43,14 +32,16 @@ pipeline:
|
||||||
- cd ../..
|
- cd ../..
|
||||||
- rm -rf DEV
|
- rm -rf DEV
|
||||||
|
|
||||||
- name: Prepare debian package
|
prepare_debian:
|
||||||
commands:
|
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.*
|
||||||
|
|
||||||
- name: Clone debian configuration
|
clone_debian_config:
|
||||||
|
environment:
|
||||||
|
GONETS: your_token_here
|
||||||
commands:
|
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/
|
||||||
|
|
@ -61,16 +52,21 @@ pipeline:
|
||||||
- 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/
|
||||||
|
|
||||||
- name: Build package
|
build_package:
|
||||||
commands:
|
commands:
|
||||||
- dpkg-buildpackage -us -uc -b
|
- dpkg-buildpackage -us -uc -b
|
||||||
|
|
||||||
- name: Get version from changelog
|
get_version:
|
||||||
commands:
|
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
|
||||||
|
|
||||||
- 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:
|
commands:
|
||||||
- source version.env
|
- source version.env
|
||||||
- git config user.name "$GIT_AUTHOR_NAME"
|
- git config user.name "$GIT_AUTHOR_NAME"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue