1 min read
Development release
Prerequisites
- BFC API Build step configured and working as expected
- Infrastructure created on Dev
Steps
- Open azure-pipeline-release.yml and update following values keeping same casing:
- ClientName -> [YourClientName]
- clientName -> [yourclientname] For client name Yourbrand file will look like this:
resources: repositories: - repository: templates type: github name: poqcommerce/Poq.Devops.Scripts endpoint: poqcommerce # Only use when testing new features. Defaults to master. #ref: pipelines/jmeter
# Pipeline name must be "buildPipeline" due to hard coding within template. pipelines: - pipeline: buildPipeline source: Build/poq-api-yourbrand-build trigger: branches: include: - main
pr: nonetrigger: none
variables: - group: 'Release Variables'
stages:- stage: devrelease displayName: Release Dev variables: - group: 'Connection Strings - Dev' - group: 'Yourbrand Variables - dev' jobs: - template: Pipelines/TaskGroups/release-netcore.yml@templates parameters: environment: 'dev' location: 'westeurope' appService: 'poq-yourbrand-dev-weu-app' appServiceResourceGroup: 'poq-yourbrand-dev-weu-rg' azureServiceConnection: 'poq-yourbrand (poq-yourbrand-vsts-sp)' isFunctionApp: 'false'
- Create and submit PR for BFC API
- Merge the PR
- Go to your Azure DevOps account
- Find project setup by Devops team for your client, should be something like “Poq.[YourClientName]”
- Go go Pipelines
- Press New Pipeline, then
- Github
- Continue
- Select your client BFC API repo
- Existing Azure Pipeline YAML file
- Select /azure-pipeline-release.yml
- Continue
- Create Variable Group “[YourClientName] - Dev” and add following values to it:
- Apps.[appIdentifier].Sfcc.ClientId : [OcapiClientIdValue]
- Create Variable Group “ConnectionStrings - Dev” and add following values to it:
- Redis.ConnectionString : [RedisConnectionStringValue]
- Select newly created Release pipeline and press Run Pipeline
- Make sure that Release succeeds for Dev
Congratulations, you have successfully configured the Release pipeline for Dev environment.