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

Deploy PR Azure Functions into their Target Environment #39

Open
noce2 opened this issue Oct 15, 2020 · 0 comments
Open

Deploy PR Azure Functions into their Target Environment #39

noce2 opened this issue Oct 15, 2020 · 0 comments
Labels
1 day cicd enhancement New feature or request

Comments

@noce2
Copy link
Contributor

noce2 commented Oct 15, 2020

The environment of an Azure Function is currently dictated by the combination of variables set in a yaml file environment and the secrets variable group. At the moment all PRs are by default set to non-production. The scope of this story is to enable the capability to set the environment of a PR to the master branch to the pre-production values. This will give an early indication of whether the pre-prod environment will be stable with the new code, prior to making any merges to master.
Code segment:

- ${{ if contains(variables['Build.SourceBranchName'], 'merge') }}: # only works if you have a PR branch

The current integration tests also run against a non-prod configured version of the API exposed via the gateway. The scope of this story is to create a new pre-prod test api that contains the right request signing config for the pre-prod environment.
Code segment:

npm test -- --world-parameters {\"baseFunctionUri\":\"https://mathdojoio.cloud.tyk.io/user-account-service-np-test/api\",\"apiKey\":\"\"}

A/C:

  1. The azure pipelines yaml is modified to use the pre-production secrets and environments if the PR target branch is master.

  2. The integration tests against a pre-prod deployed function run via a new API created on the api gateway.

@noce2 noce2 added enhancement New feature or request 1 day cicd labels Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 day cicd enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant