using push/pop-location
This commit is contained in:
parent
72d19f028d
commit
7cceab06d9
1 changed files with 3 additions and 2 deletions
|
@ -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
|
Loading…
Reference in a new issue