Skip to content

Commit c805f2e

Browse files
committed
ci: adds support branch for v1
Signed-off-by: Vincent Biret <[email protected]>
1 parent 1a5352a commit c805f2e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.azure-pipelines/ci-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ trigger:
77
include:
88
- main
99
- dev
10+
- support/v1
1011
pr:
1112
branches:
1213
include:
1314
- main
1415
- dev
16+
- support/v1
1517
variables:
1618
buildPlatform: 'Any CPU'
1719
buildConfiguration: 'Release'
@@ -206,7 +208,7 @@ extends:
206208
content: '*.nupkg'
207209

208210
- stage: deploy
209-
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/main'), succeeded())
211+
condition: and(or(contains(variables['build.sourceBranch'], 'refs/heads/main'),contains(variables['build.sourceBranch'], 'refs/heads/support/v1')), succeeded())
210212
dependsOn: build
211213
jobs:
212214
- deployment: deploy_hidi

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Docker image
22
on:
33
workflow_dispatch:
44
push:
5-
branches: [main, dev]
5+
branches: [main, dev, support/v1]
66
paths: ['src/Microsoft.OpenApi.Hidi/**', '.github/workflows/**']
77
env:
88
REGISTRY: msgraphprod.azurecr.io
@@ -35,7 +35,7 @@ jobs:
3535
push: true
3636
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly
3737
- name: Push to registry - Release
38-
if: ${{ github.ref == 'refs/heads/main' }}
38+
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/support/v1' }}
3939
uses: docker/[email protected]
4040
with:
4141
push: true

0 commit comments

Comments
 (0)