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

QA Environment added in publisher but not deploying changes in Azure portal #465

Closed
yogendratrivedi21 opened this issue Jan 29, 2024 · 1 comment

Comments

@yogendratrivedi21
Copy link

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

Copy link

  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.

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