Skip to content

Commit

Permalink
Merge pull request #1073 from cyril-s/ci_change_nightly_package_versi…
Browse files Browse the repository at this point in the history
…on_scheme

CI: change nightly version scheme from +0, +1 etc to +nightly0
  • Loading branch information
dmitry-sinina authored Nov 30, 2021
2 parents 83460de + b7a384e commit a63059e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exclude_files := config/database.yml \
*.o \
*.a

version = $(shell git describe --tags --exact 2>/dev/null || { git describe --tags | sed -E 's/-([0-9]+)-[^-]*$$/+\1/'; })
version = $(shell ./ci/gen_version.sh)
debian_version = $(shell echo $(version) | sed 's/_/~/' | sed 's/-master/~master/' | sed 's/-rc/~rc/')-1
commit = $(shell git rev-parse HEAD)

Expand Down
6 changes: 6 additions & 0 deletions ci/gen_version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
if git describe --tags --exact &>/dev/null; then
git describe --tags --exact | sed 's/$/+nightly0/'
else
git describe --tags | sed -E 's/-([0-9]+)-[^-]*$/+nightly\1/'
fi

0 comments on commit a63059e

Please sign in to comment.