summaryrefslogtreecommitdiff
path: root/manage.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-25 14:50:39 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-25 14:50:39 +0100
commit3dbade0aed048e6001f2ed0f261c7d26f04768ba (patch)
tree4579ada128e843233ed32a1431f4c98e03784c4a /manage.sh
parent757ebb5d9fdc24757f199e52575f32f6faf091b3 (diff)
downloadsearxng-3dbade0aed048e6001f2ed0f261c7d26f04768ba.tar.gz
searxng-3dbade0aed048e6001f2ed0f261c7d26f04768ba.zip
[fix] brands: add GIT_URL variable to the docker build
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage.sh')
-rwxr-xr-xmanage.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/manage.sh b/manage.sh
index 0551f02d3..bb3fe8831 100755
--- a/manage.sh
+++ b/manage.sh
@@ -202,13 +202,13 @@ docker_build() {
fi
# define the docker image name
- # /!\ HACK to get the user name /!\
- GITHUB_USER=$(git remote get-url origin | sed 's/.*github\.com\/\([^\/]*\).*/\1/')
+ GITHUB_USER=$(echo "${GIT_URL}" | sed 's/.*github\.com\/\([^\/]*\).*/\1/')
SEARX_IMAGE_NAME="${GITHUB_USER:-searx}/searx"
# build Docker image
echo "Building image ${SEARX_IMAGE_NAME}:${SEARX_GIT_VERSION}"
sudo docker build \
+ --build-arg GIT_URL="${GIT_URL}" \
--build-arg SEARX_GIT_VERSION="${SEARX_GIT_VERSION}" \
--build-arg VERSION_GITCOMMIT="${VERSION_GITCOMMIT}" \
--build-arg LABEL_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
@@ -248,7 +248,6 @@ Commands
-----
locales - Compile locales
styles - Build less files
- docker_build - Build Docker image
Tests
-----