mirror of
https://github.com/searxng/searxng.git
synced 2024-11-30 06:31:04 +00:00
[fix] travis: fix docker tag.
the "-dirty" ignores the searx/brand.py and utils/brand.env files.
This commit is contained in:
parent
8189e18d91
commit
4dad366146
1 changed files with 2 additions and 1 deletions
|
@ -121,8 +121,9 @@ docker_build() {
|
||||||
SEARX_GIT_VERSION=$(git describe --match "v[0-9]*\.[0-9]*\.[0-9]*" HEAD 2>/dev/null | awk -F'-' '{OFS="-"; $1=substr($1, 2); $3=substr($3, 2); print}')
|
SEARX_GIT_VERSION=$(git describe --match "v[0-9]*\.[0-9]*\.[0-9]*" HEAD 2>/dev/null | awk -F'-' '{OFS="-"; $1=substr($1, 2); $3=substr($3, 2); print}')
|
||||||
|
|
||||||
# add the suffix "-dirty" if the repository has uncommited change
|
# add the suffix "-dirty" if the repository has uncommited change
|
||||||
|
# /!\ HACK for searx/searx: ignore searx/brand.py and utils/brand.env
|
||||||
git update-index -q --refresh
|
git update-index -q --refresh
|
||||||
if [ ! -z "$(git diff-index --name-only HEAD --)" ]; then
|
if [ ! -z "$(git diff-index --name-only HEAD -- | grep -v 'searx/brand.py' | grep -v 'utils/brand.env')" ]; then
|
||||||
SEARX_GIT_VERSION="${SEARX_GIT_VERSION}-dirty"
|
SEARX_GIT_VERSION="${SEARX_GIT_VERSION}-dirty"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue