Allow overriding Docker repository when building docker image

This commit is contained in:
3nprob 2021-04-05 15:51:04 +09:00
父節點 ba90c5a2e0
當前提交 c819ae4d8c
共有 1 個檔案被更改,包括 1 行新增1 行删除

查看文件

@ -147,7 +147,7 @@ docker_build() {
# define the docker image name
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
echo "Building image ${SEARX_IMAGE_NAME}:${SEARX_GIT_VERSION}"