removing trailing slash from inputs
This commit is contained in:
parent
8de4cb0e2e
commit
580a6ebae0
2 changed files with 2 additions and 2 deletions
|
@ -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}"
|
||||
|
|
|
@ -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} .
|
||||
|
|
Loading…
Reference in a new issue