Skip to content

Commit eeb2c3a

Browse files
committed
pkg - Use GitHub token secret in dockerfile
--- Type: pkg Breaking: False Doc Required: False Backport Required: False Part: 1/1
1 parent 9428bcd commit eeb2c3a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ jobs:
3434
tags: ${{ steps.meta.outputs.tags }}
3535
labels: ${{ steps.meta.outputs.labels }}
3636
secrets: |
37-
"github_token=${{ secrets.GITHUB_TOKEN }}"
37+
github_token=${{ secrets.GITHUB_TOKEN }}
3838

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WORKDIR /NKS
55
COPY . ./
66

77
# Remove this when Terminaux 7.0 prep stage is done on August 10th
8-
RUN --mount=type=secret,id=github_token,env=GITHUB_TOKEN dotnet nuget add source --username AptiviCEO --password $(cat /run/secrets/github_token) --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Aptivi/index.json"
8+
RUN --mount=type=secret,id=github_token dotnet nuget add source --username AptiviCEO --password $(cat /run/secrets/github_token) --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Aptivi/index.json"
99

1010
# Attempt to build Nitrocid KS
1111
RUN dotnet build "Nitrocid.sln" -p:Configuration=Release

0 commit comments

Comments
 (0)