File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 description : ' The tag to build'
77 required : false
88 type : string
9+ default : ' main'
910 push :
1011 branches : [main]
1112 tags : ['v*']
1516 name : Push Docker image to GitHub Packages
1617 runs-on : ubuntu-latest
1718 env :
18- MSGRAPH_DOCKER_REGISTRY_URL : docker.pkg.github.com
1919 PACKAGE_VERSION : ${{github.event.inputs.tag || github.ref_name || 'v0.1.0'}}
2020 steps :
2121 - id : get-version
3434 password : ${{ secrets.GITHUB_TOKEN }}
3535 registry : docker.pkg.github.com
3636 - name : Push to GitHub Packages - Nightly
37- if : contains( github.ref, 'refs/head/main') && github.event.inputs.tag == ''
37+ if : github.ref == 'refs/head/main' || github.event.inputs.tag == 'main '
3838 uses : docker/build-push-action@v2.10.0
3939 with :
4040 push : true
4343 "user=${{ secrets.NUGET_USER }}"
4444 "token=${{ secrets.NUGET_PASSWORD }}"
4545 - name : Push to GitHub Packages - Release
46- if : contains (github.ref, 'refs/tags/v')
46+ if : startsWith (github.ref, 'refs/tags/v') || startsWith(github.event.inputs.tag, ' v')
4747 uses : docker/build-push-action@v2.10.0
4848 with :
4949 push : true
You can’t perform that action at this time.
0 commit comments