Skip to content

Commit

Permalink
ci: adds support branch for v1
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Biret <[email protected]>
  • Loading branch information
baywet committed Dec 19, 2024
1 parent 1a5352a commit c805f2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .azure-pipelines/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ trigger:
include:
- main
- dev
- support/v1
pr:
branches:
include:
- main
- dev
- support/v1
variables:
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
Expand Down Expand Up @@ -206,7 +208,7 @@ extends:
content: '*.nupkg'

- stage: deploy
condition: and(contains(variables['build.sourceBranch'], 'refs/heads/main'), succeeded())
condition: and(or(contains(variables['build.sourceBranch'], 'refs/heads/main'),contains(variables['build.sourceBranch'], 'refs/heads/support/v1')), succeeded())
dependsOn: build
jobs:
- deployment: deploy_hidi
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Publish Docker image
on:
workflow_dispatch:
push:
branches: [main, dev]
branches: [main, dev, support/v1]
paths: ['src/Microsoft.OpenApi.Hidi/**', '.github/workflows/**']
env:
REGISTRY: msgraphprod.azurecr.io
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly
- name: Push to registry - Release
if: ${{ github.ref == 'refs/heads/main' }}
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/support/v1' }}
uses: docker/[email protected]
with:
push: true
Expand Down

0 comments on commit c805f2e

Please sign in to comment.