-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2001 from microsoft/ci/align-branches
ci/align branches
- Loading branch information
Showing
5 changed files
with
17 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Publish Docker image | |
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [master, vnext] | ||
branches: [main, dev, support/v1] | ||
paths: ['src/Microsoft.OpenApi.Hidi/**', '.github/workflows/**'] | ||
env: | ||
REGISTRY: msgraphprod.azurecr.io | ||
|
@@ -16,7 +16,7 @@ jobs: | |
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v4 | ||
- name: Login to GitHub package feed | ||
- name: Login to registry | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.ACR_USERNAME }} | ||
|
@@ -28,14 +28,14 @@ jobs: | |
echo "::set-output name=version::${version}" | ||
shell: pwsh | ||
id: getversion | ||
- name: Push to GitHub Packages - Nightly | ||
if: ${{ github.ref == 'refs/heads/vnext' }} | ||
- name: Push to registry - Nightly | ||
if: ${{ github.ref == 'refs/heads/dev' }} | ||
uses: docker/[email protected] | ||
with: | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly | ||
- name: Push to GitHub Packages - Release | ||
if: ${{ github.ref == 'refs/heads/master' }} | ||
- name: Push to registry - Release | ||
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/support/v1' }} | ||
uses: docker/[email protected] | ||
with: | ||
push: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters