1 min read
Staging release
Prerequisites
- Release for Dev environment working as expected
- Infrastructure created on Staging
- All required configuration is available for Staging environment
Steps
- Open azure-pipeline-release.yml and add following section replacing “clientname” with [yourclientname] keeping same casing:
- stage: stagingrelease displayName: Release Staging # Uncomment this once you add desired variable groups # variables: - group: 'Connection Strings - Staging' - group: 'ClientName Variables - Staging' dependsOn: devrelease jobs: - template: Pipelines/TaskGroups/release-netcore-v2-with-tests.yml@templates parameters: environment: 'staging' location: 'westeurope' appService: 'poq-clientName-staging-weu-app' appServiceResourceGroup: 'poq-clientName-staging-weu-rg' azureServiceConnection: 'poq-clientName (poq-clientName-vsts-sp)' isFunctionApp: 'false'
Please note that in general this piece should be already configured if you used code from template and configured Dev release successfully.
For client name Yourbrand section will look like this:
- stage: stagingrelease displayName: Release Staging # Uncomment this once you add desired variable groups # variables: - group: 'Connection Strings - Staging' - group: 'YourBrand Variables - Staging' dependsOn: devrelease jobs: - template: Pipelines/TaskGroups/release-netcore-v2-with-tests.yml@templates parameters: environment: 'staging' location: 'westeurope' appService: 'poq-yourbrand-staging-weu-app' appServiceResourceGroup: 'poq-yourbrand-staging-weu-rg' azureServiceConnection: 'poq-yourbrand (poq-yourbrand-vsts-sp)' isFunctionApp: 'false'
- Create Variable Group “[YourClientName] - Staging” and add following values to it:
- Apps.[appIdentifier].Sfcc.ClientId : [OcapiClientIdValue]
- Create Variable Group “ConnectionStrings - Staging” and add following values to it:
- Redis.ConnectionString : [RedisConnectionStringValue]
- Create and submit PR for BFC API
- Merge the PR
- Code should be released up to Dev automatically
- Approve Staging release
- Make sure that Staging Release completes successfully
Congratulations, you have successfully configured the Release pipeline for Staging environment.