Forum Discussion
sundeepbhatia1989
Apr 20, 2023Copper Contributor
How to call multiple yaml file in same folder in azure devops pipeline
- stage: Namespace
displayName: Deploy Namespace
jobs:
- job: Deploy
pool: <pool name>
steps:
- task: Kubernetes@1
inputs:
connectionType: 'Azure Resource Manager'
azureSubscriptionEndpoint: <SPN>
azureResourceGroup: <AKS RG>
kubernetesCluster: <AKS>
useClusterAdmin: true
command: apply
useConfigurationFile: true
# configuration: tenant/developer/01namespace.yaml
configuration: tenant
workingDirectory: tenant/ #it will call yaml files inside tenant azure repository
outputFormat: yaml
Please refer to this, a similar topic:
Running a pipeline with more than one yaml : r/azuredevops (reddit.com)