Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit d73e398

Browse files
authored
ci: update to using explicit token when publishing docker image (#436)
1 parent b81854a commit d73e398

File tree

2 files changed

+2
-57
lines changed

2 files changed

+2
-57
lines changed

.github/workflows/create-v1.0-pull-request.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/docker-publish.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,26 +31,20 @@ jobs:
3131
submodules: true
3232
ref: ${{github.event.inputs.tag || ''}}
3333
- name: Login to docker registry
34-
uses: docker/[email protected]
34+
uses: docker/[email protected]
3535
with:
3636
username: ${{ github.actor }}
37-
password: ${{ secrets.GITHUB_TOKEN }}
37+
password: ${{ secrets.DOCKER_PUBLISH_TOKEN }}
3838
registry: ${{ env.REGISTRY }}
3939
- name: Push to GitHub Packages - Nightly
4040
if: github.ref == 'refs/heads/main' || github.event.inputs.tag == 'main'
4141
uses: docker/[email protected]
4242
with:
4343
push: true
4444
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:nightly
45-
secrets: |
46-
"user=${{ secrets.NUGET_USER }}"
47-
"token=${{ secrets.NUGET_PASSWORD }}"
4845
- name: Push to GitHub Packages - Release
4946
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.event.inputs.tag, 'v')
5047
uses: docker/[email protected]
5148
with:
5249
push: true
5350
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest,${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.get-version.outputs.version }}
54-
secrets: |
55-
"user=${{ secrets.NUGET_USER }}"
56-
"token=${{ secrets.NUGET_PASSWORD }}"

0 commit comments

Comments
 (0)