Skip to content

Commit

Permalink
Merge pull request #29 from unicef/feature/release-tag
Browse files Browse the repository at this point in the history
Update azure-pipeline-dev.yml
  • Loading branch information
vikashkum05 authored Aug 23, 2024
2 parents b3696ec + f78e8fc commit e19d07e
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions azure-pipeline-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
# https://aka.ms/yaml

trigger:
- develop
- staging
- release/*
branches:
include:
- develop
- staging
tags:
include:
- 'release-*'

name: $(SourceBranchName).$(Build.BuildId).$(Date:yyyyMMdd).$(Rev:r)

Expand Down Expand Up @@ -88,10 +92,7 @@ steps:
condition:
and(
succeeded(),
or(
eq(variables['Build.SourceBranch'], 'refs/heads/staging'),
startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')
)
eq(variables['Build.SourceBranch'], 'refs/heads/staging')
)
inputs:
command: buildAndPush
Expand All @@ -103,11 +104,11 @@ steps:
- task: Docker@2
displayName: Prod - Build and Push image
# condition:
# and(
# succeeded(),
# startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')
# )
condition:
and(
succeeded(),
startsWith(variables['Build.SourceBranch'], 'refs/tags/release-')
)
inputs:
command: buildAndPush
repository: $(imageRepositoryProd)
Expand Down

0 comments on commit e19d07e

Please sign in to comment.