mirror of https://github.com/dapr/samples.git
17 lines
473 B
PowerShell
17 lines
473 B
PowerShell
Write-Host "Building and pushing batch-generator image to ACR"
|
|
|
|
$acrLoginServer = "<acr-login-server>"
|
|
$acrName = "<acr-name>"
|
|
|
|
# Log in to the registry
|
|
az acr login --name $acrName
|
|
|
|
# Build an image from a Dockerfile
|
|
docker build -t batch-generator:v1 $PSScriptRoot/../batchGenerator
|
|
|
|
# Tag the image
|
|
docker tag batch-generator:v1 $acrLoginServer/batch-generator:v1
|
|
|
|
# Push the image to the Azure Container Registry instance
|
|
docker push $acrLoginServer/batch-generator:v1
|