mirror of
https://github.com/vmware-tanzu/pinniped.git
synced 2026-01-05 04:56:11 +00:00
Do not fail hack/prepare-for-integration-tests.sh without KUBE_GIT_VERSION
This commit is contained in:
@@ -205,12 +205,12 @@ registry_repo_tag="${registry_repo}:${tag}"
|
||||
|
||||
if [[ "$do_build" == "yes" ]]; then
|
||||
# Rebuild the code
|
||||
testing_version="${$KUBE_GIT_VERSION:-}"
|
||||
testing_version="${KUBE_GIT_VERSION:-}"
|
||||
if [[ "$dockerfile_path" != "" ]]; then
|
||||
log_note "Docker building the app with dockerfile $dockerfile_path and KUBE_GIT_VERSION=$testing_version"
|
||||
log_note "Docker building the app with dockerfile $dockerfile_path and KUBE_GIT_VERSION='$testing_version'"
|
||||
DOCKER_BUILDKIT=1 docker build . --tag "$registry_repo_tag" --file "$dockerfile_path" --build-arg "KUBE_GIT_VERSION=$testing_version"
|
||||
else
|
||||
log_note "Docker building the app with KUBE_GIT_VERSION=$testing_version"
|
||||
log_note "Docker building the app with KUBE_GIT_VERSION='$testing_version'"
|
||||
# DOCKER_BUILDKIT=1 is optional on MacOS but required on linux.
|
||||
DOCKER_BUILDKIT=1 docker build . --tag "$registry_repo_tag" --build-arg "KUBE_GIT_VERSION=$testing_version"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user