Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
description: 'The tag to build'
required: false
type: string
default: 'main'
push:
branches: [main]
tags: ['v*']
Expand All @@ -15,7 +16,6 @@ jobs:
name: Push Docker image to GitHub Packages
runs-on: ubuntu-latest
env:
MSGRAPH_DOCKER_REGISTRY_URL: docker.pkg.github.com
PACKAGE_VERSION: ${{github.event.inputs.tag || github.ref_name || 'v0.1.0'}}
steps:
- id: get-version
Expand All @@ -34,7 +34,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
- name: Push to GitHub Packages - Nightly
if: contains(github.ref, 'refs/head/main') && github.event.inputs.tag == ''
if: github.ref == 'refs/head/main' || github.event.inputs.tag == 'main'
uses: docker/build-push-action@v2.10.0
with:
push: true
Expand All @@ -43,7 +43,7 @@ jobs:
"user=${{ secrets.NUGET_USER }}"
"token=${{ secrets.NUGET_PASSWORD }}"
- name: Push to GitHub Packages - Release
if: contains(github.ref, 'refs/tags/v')
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.event.inputs.tag, 'v')
uses: docker/build-push-action@v2.10.0
with:
push: true
Expand Down