$CONTAINER_IMAGE_NAME="your_image_name:0.1"
$CONTAINER_REGISTRY_NAME = "your_registry_name"
az login --tenant "XXXXXXXXXXXXXXXXXX"
az account set --name azurecloud --subscription "XXXXXXXXXXXXXXXXXXXXXXXX"
#This will pick local files
az acr build --registry "$CONTAINER_REGISTRY_NAME" --image "$CONTAINER_IMAGE_NAME" --file "Dockerfile" .
#This will pick remote files
az acr build --registry "$CONTAINER_REGISTRY_NAME" --image "$CONTAINER_IMAGE_NAME" --file "Dockerfile.azure-pipelines" "https://github.com/poorleno1/container-apps-ci-cd-runner-tutorial.git"
various
az acr task create --registry "$CONTAINER_REGISTRY_NAME" --name updateimage --context https://github.com/poorleno1/container-apps-ci-cd-runner-tutorial.git --file Dockerfile.azure-pipelines --image "$CONTAINER_IMAGE_NAME" --commit-trigger-enabled false
--commit-trigger-enabled
Indicates whether the source control commit trigger is enabled.
No comments:
Post a Comment