Commit 9e1e967 1 parent 2c9d611 commit 9e1e967 Copy full SHA for 9e1e967
File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
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
36
34
run : |
37
- docker build -t ghcr.io/bardin08/trumpee-gateway:${{ github.event.release.tag_name}} --build-arg NUGET_API_KEY=$ NUGET_API_KEY .
35
+ docker build -t ghcr.io/bardin08/trumpee-gateway:${{ github.event.release.tag_name}} --build-arg ${{ secrets. NUGET_API_KEY }} .
38
36
docker tag ghcr.io/bardin08/trumpee-gateway:${{ github.event.release.tag_name}} ghcr.io/bardin08/trumpee-gateway:latest
39
37
docker push ghcr.io/bardin08/trumpee-gateway --all-tags
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build-env
3
3
WORKDIR /src
4
4
5
5
ARG NUGET_API_KEY
6
- ENV NUGET_API_KEY=$NUGET_API_KEY
7
6
8
7
# Copy the project files first for better layer caching (if only code changes)
9
8
COPY *.sln ./
You can’t perform that action at this time.
0 commit comments