variables:
    registryEndpoint: eshop-registry
trigger:
  branches:
    include:
    - master
    - dev
  paths:
    include:
    - src/ApiGateways/*
    - k8s/helm/apigwmm/*
    - k8s/helm/apigwms/*
    - k8s/helm/apigwwm/*
    - k8s/helm/apigwws/*
    exclude:
    - src/ApiGateways/Mobile.Bff.Shopping/aggregator/*
    - src/ApiGateways/Web.Bff.Shopping/aggregator/*
jobs:
- template: ../buildimages.yaml
  parameters:
    services: mobileshoppingapigw mobilemarketingapigw webshoppingapigw webmarketingapigw
    registryEndpoint: $(registryEndpoint)
    helmfrom: $(Build.SourcesDirectory)/k8s/helm
    helmto: $(Build.ArtifactStagingDirectory)/k8s/helm    
- template: ../multiarch.yaml
  parameters:
    image: ocelotapigw
    branch: $(Build.SourceBranchName)
    registryEndpoint: $(registryEndpoint)