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

  1. 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'
  1. Create Variable Group “[YourClientName] - Staging” and add following values to it:
    1. Apps.[appIdentifier].Sfcc.ClientId : [OcapiClientIdValue]
  2. Create Variable Group “ConnectionStrings - Staging” and add following values to it:
    1. Redis.ConnectionString : [RedisConnectionStringValue]
  3. Create and submit PR for BFC API
  4. Merge the PR
  5. Code should be released up to Dev automatically
  6. Approve Staging release
  7. Make sure that Staging Release completes successfully
Congratulations, you have successfully configured the Release pipeline for Staging environment.

See Next