azure-build

Docker build in Azure ACR

Arguments

  • ACR_NAME * - acr registry name
  • APP_ID * - azure service principal application id (service principal authentication mode only)
  • AUTH - Only if authentication mode is by service principal
  • DOCKERFILE_PATH - dockerfile path (default - working_dir/Dockerfile)
  • IMAGE * - image name
  • PASSWORD * - azure service principal password or user password (based on authentication mode)
  • TAG * - tag name
  • TENANT * - azure ad tenant id (service principal authentication mode only)
  • USER * - azure user name (not need in service principal authentication mode)
    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.com
Amir Gabay
Sep 18, 2019