azure-build

Docker build in Azure ACR
Arguments
AUTH
- Only if authentication mode is by service principal
USER
- azure user name (not need in service principal authentication mode)
IMAGE
- image name
TAG
- tag name
ACR_NAME
- acr registry name
APP_ID
- azure service principal application id (service principal authentication mode only)
PASSWORD
- azure service principal password or user password (based on authentication mode)
TENANT
- azure ad tenant id (service principal authentication mode only)
DOCKERFILE_PATH
- dockerfile path (default - working_dir/Dockerfile)
    version: '1.0'
steps:
  cf-az-build:
    type: azure-build
    arguments:
      AUTH: service-principal
      IMAGE: '${{IMAGE_NAME}}'
      TAG: '${{IMAGE_TAG}}'
      ACR_NAME: '${{REGISTRY}}'
      APP_ID: '${{AZURE_APP_ID}}'
      PASSWORD: '${{AZURE_PASSWORD}}'
      TENANT: '${{TENANT}}'
      DOCKERFILE_PATH: '${{DOCKERFILE}}'
      USER: '${{USER}}'

  
github.comAmir GabayAug 21, 2019source