Commit 7bfe10d 1 parent 70f0f5b commit 7bfe10d Copy full SHA for 7bfe10d
File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 31
31
password : ${{ secrets.GITHUB_TOKEN }}
32
32
33
33
- name : Build and Push Docker Image
34
+ env :
35
+ NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }} # Reference the secret
34
36
run : |
35
- docker build -t ghcr.io/bardin08/trumpee-gateway:${{ github.event.release.tag_name}} --build-arg NUGET_API_KEY=${{ secrets.SECRET_TOKEN }} .
37
+ docker build -t ghcr.io/bardin08/trumpee-gateway:${{ github.event.release.tag_name}} --build-arg NUGET_API_KEY=$NUGET_API_KEY .
36
38
docker tag ghcr.io/bardin08/trumpee-gateway:${{ github.event.release.tag_name}} ghcr.io/bardin08/trumpee-gateway:latest
37
39
docker push ghcr.io/bardin08/trumpee-gateway --all-tags
Original file line number Diff line number Diff line change 1
1
ARG NUGET_API_KEY
2
+ ENV NUGET_API_KEY=$NUGET_API_KEY
2
3
3
4
# STAGE 1: Build Environment
4
5
FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build-env
You can’t perform that action at this time.
0 commit comments