Skip to content

Ci deb package

Peter Werner requested to merge ci-deb-package into master

Added debian packageing to the ci.

On every push to master or on every created tag a debian package will be generated. Tags will be used to determine details regarding the package.

Packaging on a non-tagged commit on master

The version for the package is set to the output of git describe --tags (<last tag in history>-<amount of commits the current one is ahead>-<small commit hash>).

Everything in this output before the first number will be removed. If it doesn't contain a number the version is set to 0-<out put of git describe --tags>.

Additionally all charachters that are not alpha-numeric, '-', '+', '~' or '.' will also be removed from the output.

'-1' will be appended to the version (this is the revision number of the package which is for now set fixed to 1).

The suite for the package will be set to experimental. The determined suite will be put into a file (also conviniently named suite) that can be downloaded alongside the package. A debian respository server can use that information to set the codename accordingly (E.g. stretch/experimental).

Packaging on a tag

The version will be set to the value of the tag and the same sanitizing methods as above will be used and '-1' will be appended too.

Additionally the text behind the last hyphen ('-') in the tag will be used as suite if the text matches one of the available suites (stable, unstable, testing, experimental).

Edited by Peter Werner

Merge request reports