Create a release (WIP)
Set up Git
You can add this code snippet inside ~/.gitconfig:
[alias]
pp = !git pull && git push
pushall = !git remote | xargs -L1 git push --all
pushall-tags = !git remote | xargs -L1 git push --tags
Create tag
Uou can apply the changes, commit to main or master branch and create a tag starting from branch main/master.
If you want to create version 1.2.3, the commands below will trigger the CI and upload the files to Artifactory:
git checkout master # make your changes ...
git commit "my new change"
git push
git tag 1.2.3
git pushall-tags
Create Deb package
The following command will create the Debian package, as well as the Go binary and it uses the latest tag as the version number:
./build-deb.sh
It's also possible to specify the version number, which should match an existing tag.
$ ./build-deb.sh --help
This script builds a .deb package for haproxy-fodder
Usage: build-deb.sh [--version <version>] [--email email@example.org]
build-deb.sh -h | --help
-h | --help Print this help and exit
-v | --version Version to build (e.g. 1.0.0, default: latest)
-e | --email Maintainer email (default: massimiliano.adamo@geant.org)