variables:
    registryEndpoint: eshop-registry
trigger:
  branches:
    include:
    - master
    - dev
  paths:
    include:
    - src/BuildingBlocks/*
    - src/Services/Catalog/*
    - build/azure-devops/buildimages.yml
    - build/azure-devops/multiarch.yml
    - build/azure-devops/catalog-api/*
    - deploy/k8s/helm/catalog-api/*
jobs:
- template: ../buildimages.yaml
  parameters:
    services: catalog-api
    registryEndpoint: $(registryEndpoint)
    helmfrom: $(Build.SourcesDirectory)/deploy/k8s/helm
    helmto: $(Build.ArtifactStagingDirectory)/deploy/k8s/helm
- template: ../multiarch.yaml
  parameters:
    image: catalog.api
    branch: $(Build.SourceBranchName)
    registryEndpoint: $(registryEndpoint)
