1
0
Fork 0

using push/pop-location

This commit is contained in:
Christian Kühnel 2020-02-04 11:14:18 +01:00
parent 72d19f028d
commit 7cceab06d9

View file

@ -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
docker push $QUALIFIED_NAME
Pop-Location