1 min read

Development release

Prerequisites

  • BFC API Build step configured and working as expected
  • Infrastructure created on Dev

Steps

  1. Open azure-pipeline-release.yml and update following values keeping same casing:
    1. ClientName -> [YourClientName]
    2. 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: none
trigger: 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'
  1. Create and submit PR for BFC API
  2. Merge the PR
  3. Go to your Azure DevOps account
  4. Find project setup by Devops team for your client, should be something like “Poq.[YourClientName]
  5. Go go Pipelines
  6. Press New Pipeline, then
    1. Github
    2. Continue
    3. Select your client BFC API repo
    4. Existing Azure Pipeline YAML file
    5. Select /azure-pipeline-release.yml
    6. Continue
  7. Create Variable Group “[YourClientName] - Dev” and add following values to it:
    1. Apps.[appIdentifier].Sfcc.ClientId : [OcapiClientIdValue]
  8. Create Variable Group “ConnectionStrings - Dev” and add following values to it:
    1. Redis.ConnectionString : [RedisConnectionStringValue]
  9. Select newly created Release pipeline and press Run Pipeline
  10. Make sure that Release succeeds for Dev
Congratulations, you have successfully configured the Release pipeline for Dev environment.

See Next