fix: allow changing docker repo

This commit is contained in:
Vjacheslav Trushkin 2023-01-08 23:17:51 +02:00
parent 20a8ad39ce
commit 2d8424a40e
1 changed files with 2 additions and 2 deletions

View File

@ -7,11 +7,11 @@
# To test the docker image a command like this can be used:
#docker run --rm -p 3123:3000 --name iconify-api -v $(realpath "../iconify-cache"):/data/iconify-api/cache -v $(realpath "../iconify-config"):/data/iconify-api/src/config iconify/api:latest
#docker run --rm -p 3123:3000 --name iconify-api -v /absolute/path/iconify-cache:/data/iconify-api/cache -v /absolute/path/iconify-config:/data/iconify-api/src/config iconify/api:latest
DOCKER_REPO=iconify/api
ICONIFY_API_REPO=$(realpath "./")
BUILD_SOURCE=$(realpath "./")
SHARED_DIR=$BUILD_SOURCE/../shared
DOCKERFILE=$(realpath "./Dockerfile")
REPO_BRANCH="main"
SRC_PATH="./"
if [ -z "$1" ]; then
ARCH=amd64
@ -53,6 +53,6 @@ time docker build --rm=false \
--build-arg TAG_SUFFIX=default \
--build-arg SRC_PATH="$SRC_PATH" \
--file $DOCKERFILE \
--tag iconify/api:latest --tag iconify/api:${ICONIFY_API_VERSION} $BUILD_SOURCE
--tag ${DOCKER_REPO}:latest --tag ${DOCKER_REPO}:${ICONIFY_API_VERSION} $BUILD_SOURCE
rm -fR $BUILD_SOURCE/tmp