Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for splitting YML into smaller files #60

Open
josearesvi opened this issue Nov 13, 2023 · 1 comment
Open

Support for splitting YML into smaller files #60

josearesvi opened this issue Nov 13, 2023 · 1 comment

Comments

@josearesvi
Copy link

As mentioned in the section "Maintaining Large YAML Definitions By Splitting Them" we have do so and in our pipeline we have 2 commands:

dotnet-apim -c ".\Products-Config.yml" -o "$(Build.ArtifactStagingDirectory)/Dev" -f ".\EnvironmentConfigurations\config-dev.yml" -p "dev-"
dotnet-apim -c ".\APIM-Subscriptions-Config.yml" -o "$(Build.ArtifactStagingDirectory)/Dev" -f ".\EnvironmentConfigurations\config-dev.yml" -p "dev-"

The first one creates a Product that then the second one ( Subscriptions ) will use to set permissions, still the 2 .yml are not aggregated into one single dev-apim_deploy.template.json file, what it seems to happen is that the last overrides the first one. How should we run this so that the Products-Config.yml and the APIM-Subscriptions-Config.yml are aggregated into a single deployment definitions.

@emaeric25
Copy link

emaeric25 commented Mar 1, 2024

@josearesvi This seems to me to be an error in the documentation. Because if you put your input files (Products-config.yml and APIM-Subscriptions-Config.yml) in the same folder (e.g. Config) and reference that, it seems to work.

So then your command gets (with Config as a new folder with the two config files in it) :
dotnet-apim -c ".\Config" -o "$(Build.ArtifactStagingDirectory)/Dev" -f ".\EnvironmentConfigurations\config-dev.yml" -p "dev-"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants