diff --git a/containers/build_deploy.sh b/containers/build_deploy.sh index 16a619f..299a2b7 100755 --- a/containers/build_deploy.sh +++ b/containers/build_deploy.sh @@ -21,7 +21,7 @@ ROOT_DIR="$(dirname ${DIR})" # get config options source "${ROOT_DIR}/k8s_config" -IMAGE_NAME="$1" +IMAGE_NAME="${1%/}" QUALIFIED_NAME="${GCR_HOSTNAME}/${GCP_PROJECT}/${IMAGE_NAME}" cd "${DIR}/${IMAGE_NAME}" diff --git a/containers/build_run.sh b/containers/build_run.sh index 335b1a3..a5f0a17 100755 --- a/containers/build_run.sh +++ b/containers/build_run.sh @@ -16,7 +16,7 @@ set -eux DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" -IMAGE_NAME="$1" +IMAGE_NAME="${1%/}" cd "${DIR}/${IMAGE_NAME}" docker build -t ${IMAGE_NAME} .