forked from Ponysearch/Ponysearch
Merge pull request #2726 from 3nprob/custom-docker-repository
Allow overriding Docker repository when building docker image
This commit is contained in:
commit
b40af000f3
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ docker_build() {
|
||||||
|
|
||||||
# define the docker image name
|
# define the docker image name
|
||||||
GITHUB_USER=$(echo "${GIT_URL}" | sed 's/.*github\.com\/\([^\/]*\).*/\1/')
|
GITHUB_USER=$(echo "${GIT_URL}" | sed 's/.*github\.com\/\([^\/]*\).*/\1/')
|
||||||
SEARX_IMAGE_NAME="${GITHUB_USER:-searx}/searx"
|
SEARX_IMAGE_NAME="${SEARX_IMAGE_NAME:-${GITHUB_USER:-searx}/searx}"
|
||||||
|
|
||||||
# build Docker image
|
# build Docker image
|
||||||
echo "Building image ${SEARX_IMAGE_NAME}:${SEARX_GIT_VERSION}"
|
echo "Building image ${SEARX_IMAGE_NAME}:${SEARX_GIT_VERSION}"
|
||||||
|
|
Loading…
Reference in a new issue