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

Commit cb4bdf5

Browse files
committed
Add secrets to the docker build
1 parent 671e8af commit cb4bdf5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/docker-publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,11 @@ jobs:
1717
env:
1818
MSGRAPH_DOCKER_REGISTRY_URL: docker.pkg.github.com
1919
PACKAGE_VERSION: ${{github.event.inputs.tag || github.ref_name || 'v0.1.0'}}
20-
NUGET_USER: ${{ secrets.NUGET_USER }}
21-
NUGET_TOKEN: ${{ secrets.NUGET_PASSWORD }}
2220
steps:
2321
- id: get-version
2422
run: |
2523
PACKAGE_VERSION=$(echo $PACKAGE_VERSION | sed s/^v//)
2624
echo "::set-output name=version::$PACKAGE_VERSION"
27-
- name: Prepare secret files
28-
run: |
29-
echo $NUGET_USER > nuget_user.txt
30-
echo $NUGET_TOKEN > nuget_token.txt
3125
- name: Check out the repo
3226
uses: actions/checkout@v3
3327
with:
@@ -45,9 +39,15 @@ jobs:
4539
with:
4640
push: true
4741
tags: docker.pkg.github.com/microsoftgraph/msgraph-cli/msgraph-cli:nightly
42+
secrets: |
43+
"user=${{ secrets.NUGET_USER }}"
44+
"token=${{ secrets.NUGET_PASSWORD }}"
4845
- name: Push to GitHub Packages - Release
4946
if: contains(github.ref, 'refs/tags/v')
5047
uses: docker/[email protected]
5148
with:
5249
push: true
5350
tags: docker.pkg.github.com/microsoftgraph/msgraph-cli/msgraph-cli:latest,docker.pkg.github.com/microsoftgraph/msgraph-cli/msgraph-cli:${{ steps.get-version.outputs.version }}
51+
secrets: |
52+
"user=${{ secrets.NUGET_USER }}"
53+
"token=${{ secrets.NUGET_PASSWORD }}"

0 commit comments

Comments
 (0)