From 7cceab06d9d3d022ace154ff8347c4747018a85d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Tue, 4 Feb 2020 11:14:18 +0100 Subject: [PATCH] using push/pop-location --- containers/build_deploy.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/containers/build_deploy.ps1 b/containers/build_deploy.ps1 index 7b6f374..e7524ef 100644 --- a/containers/build_deploy.ps1 +++ b/containers/build_deploy.ps1 @@ -27,7 +27,8 @@ Get-Content "${ROOT_DIR}/k8s_config" | Foreach-Object{ New-Variable -Name QUALIFIED_NAME -Value "${GCR_HOSTNAME}/${GCP_PROJECT}/${IMAGE_NAME}" -Set-Location "$PSScriptRoot\$IMAGE_NAME" +Push-Location "$PSScriptRoot\$IMAGE_NAME" docker build -t $IMAGE_NAME . docker tag $IMAGE_NAME $QUALIFIED_NAME -docker push $QUALIFIED_NAME \ No newline at end of file +docker push $QUALIFIED_NAME +Pop-Location \ No newline at end of file