trigger:
  - main

pr: none

pool:
  vmImage: ubuntu-latest

stages:
  - stage: Build
    displayName: Build and push stage
    jobs:
      - job: Build
        displayName: Build job
        steps:
          - task: Docker@2
            displayName: Build and push an image to container registry
            inputs:
              command: buildAndPush
              repository: <%= imageName %>
              containerRegistry: <%= dockerRegistry %>
              dockerfile: '**/Dockerfile'
              buildContext: '**'
              tags: |
                $(Build.BuildId)
                latest
