1 min read
Production release
In this tutorial we only create production release for the West EU region. Cross region deployment should be applied in the same manner.
Prerequisites
- Release for Staging environment working as expected
- Infrastructure created on Production
- All required configuration is available for Production environment
Steps
- Open azure-pipeline-release.yml and add following section replacing “clientname” with [yourclientname] keeping same casing:
- stage: prodrelease displayName: Release Production - group: 'Connection Strings - Production' - group: 'ClientName Variables - Production' dependsOn: stagingrelease jobs: - template: Pipelines/TaskGroups/release-netcore-v2-with-tests.yml@templates parameters: environment: 'prod' location: 'westeurope' appService: 'poq-clientName-prod-weu-app' appServiceResourceGroup: 'poq-clientName-prod-weu-rg' azureServiceConnection: 'poq-clientName (poq-clientName-vsts-sp)' isFunctionApp: 'false' postmanCollectionId: ${{ parameters.postmanCollectionId }} postmanEnvironmentId: ${{ parameters.postmanEnvironmentId }}
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: prodrelease displayName: Release Production - group: 'Connection Strings - Production' - group: 'YourBrand Variables - Production' dependsOn: stagingrelease jobs: - template: Pipelines/TaskGroups/release-netcore-v2-with-tests.yml@templates parameters: environment: 'prod' location: 'westeurope' appService: 'poq-yourbrand-prod-weu-app' appServiceResourceGroup: 'poq-yourbrand-prod-weu-rg' azureServiceConnection: 'poq-yourbrand (poq-yourbrand-vsts-sp)' isFunctionApp: 'false' postmanCollectionId: ${{ parameters.postmanCollectionId }} postmanEnvironmentId: ${{ parameters.postmanEnvironmentId }}
- Create Variable Group “[YourClientName] - Production” 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
- Approve Production release
- Make sure that Production Release completes successfully
Congratulations, you have successfully configured the Release pipeline for Staging environment.