1
0
Fork 0

generate debian/changelog using a version string derived from git
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Markus 2021-09-08 19:17:24 +02:00
parent 3a81703d50
commit 8a43e1e45b
1 changed files with 5 additions and 2 deletions

View File

@ -11,12 +11,13 @@ steps:
- name: clone
image: alpine/git
commands:
- git clone --depth 1 https://github.com/moepman/wgskex.git .
- git clone https://github.com/moepman/wgskex.git .
- name: build
image: debian:buster-slim
commands:
- apt update -qq -y
- apt install -qq -y build-essential debhelper devscripts dh-virtualenv python3-dev python3-pip python3-setuptools python3-venv
- sed "s/#VERSION/$(git describe --tags)/g;s/#DATE/$(date -R)/g" debian/changelog.template > debian/changelog
- dpkg-buildpackage -us -uc -b
- mkdir release
- mv ../*.deb release
@ -52,12 +53,13 @@ steps:
- name: clone
image: alpine/git
commands:
- git clone --depth 1 https://github.com/moepman/wgskex.git .
- git clone https://github.com/moepman/wgskex.git .
- name: build
image: debian:bullseye-slim
commands:
- apt update -qq -y
- apt install -qq -y build-essential debhelper devscripts dh-virtualenv python3-venv
- sed "s/#VERSION/$(git describe --tags)/g;s/#DATE/$(date -R)/g" debian/changelog.template > debian/changelog
- dpkg-buildpackage -us -uc -b
- mkdir release
- mv ../*.deb release
@ -99,6 +101,7 @@ steps:
commands:
- apt update -qq -y
- apt install -qq -y build-essential debhelper devscripts dh-virtualenv python3-venv
- sed "s/#VERSION/${DRONE_TAG}/g;s/#DATE/$(date -R)/g" debian/changelog.template > debian/changelog
- dpkg-buildpackage -us -uc -b
- mkdir release
- mv ../*.deb release