Skip to content

Instantly share code, notes, and snippets.

@Jtorrecilla
Created April 9, 2019 20:49
Show Gist options
  • Select an option

  • Save Jtorrecilla/b80ab9b9b822ddb0d20165d747daa707 to your computer and use it in GitHub Desktop.

Select an option

Save Jtorrecilla/b80ab9b9b822ddb0d20165d747daa707 to your computer and use it in GitHub Desktop.
variables:
- group: Artifacts
steps:
- task: Docker@1
displayName: 'Build an image'
inputs:
command: Build an image
azureSubscription: Devops
azureContainerRegistry: '{"loginServer":"xxx.azurecr.io", "id" : "/subscriptions/xxx/resourceGroups/xxx-DEV/providers/Microsoft.ContainerRegistry/registries/xxx"}'
dockerFile: src/Services/MyApi/Dockerfile
imageName: $(Build.Repository.Name):$(Build.BuildId)
arguments: '--build-arg ARTIFACTS_ENDPOINT="$(artifactsEndpoint)" --build-arg ACCESS_TOKEN="$(artifactsAccessToken)" --build-arg USER="xxx"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment