QA Environment added in publisher but not deploying changes in Azure portal
Release version
5.0.1
Describe the bug
As mentioned in the document, i have build API using IDE in both Dev and Prod environment. Now i am trying to add QA environemnt and did changes in both publisher and publisher. env file. I have also added Configuraion.qa.yaml file in the code. Publisher yaml run successfully for all three envirnments, but the changes not showing in QA envirnonment in azure portal.
Expected behavior
Ablr to build API throught IDE in all three environment DEv, QA, Prod
Actual behavior
API deployed only in DEV and Prod environrmt not in QA
Reproduction Steps
Code added in publisher -- QA Environmrnt added here-------------------------------------------------- Push-Changes-To-APIM-QA-With-Commit-ID: if: (github.event.inputs.COMMIT_ID_CHOICE == 'publish-artifacts-in-last-commit' || github.event.inputs.COMMIT_ID_CHOICE == '') needs: [get-commit, Push-Changes-To-APIM-Dev-With-Commit-ID] uses: ./.github/workflows/run-publisher-with-env.yaml with: API_MANAGEMENT_ENVIRONMENT: qa # change this to match the qa environment created in settings CONFIGURATION_YAML_PATH: configuration.qa.yaml # make sure the file is available at the root API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH: apimartifacts # change this to the artifacts folder COMMIT_ID: ${{ needs.get-commit.outputs.commit_id }} secrets: inherit
Push-Changes-To-APIM-QA-Without-Commit-ID: if: ( github.event.inputs.COMMIT_ID_CHOICE == 'publish-all-artifacts-in-repo' ) needs: [get-commit, Push-Changes-To-APIM-Dev-Without-Commit-ID] uses: ./.github/workflows/run-publisher-with-env.yaml with: API_MANAGEMENT_ENVIRONMENT: qa # change this to match the prod environment created in settings CONFIGURATION_YAML_PATH: configuration.qa.yaml # make sure the file is available at the root API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH: apimartifacts # change this to the artifacts folder secrets: inherit
Code added in publisher.env
- name: "Perform namevalue secret substitution in configuration.${{ inputs.API_MANAGEMENT_ENVIRONMENT}}.yaml"
if: (inputs.API_MANAGEMENT_ENVIRONMENT == 'qa' )
uses: cschleiden/[email protected]
with:
tokenPrefix: "{#"
tokenSuffix: "#}"
files: ${{ format('["**/configuration.{0}.yaml"]', inputs.API_MANAGEMENT_ENVIRONMENT) }}
specify environment specific secrets to be replaced. For example the QA environment could have a different set sercrets to
replace within the configuration.[environment].yaml file
Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.