Skip to content

Commit 9e1e967

Browse files
committed
Update docker file & github actions with custom nuget source
1 parent 2c9d611 commit 9e1e967

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

.github/workflows/build_docker_image.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ jobs:
3131
password: ${{ secrets.GITHUB_TOKEN }}
3232

3333
- name: Build and Push Docker Image
34-
env:
35-
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} # Reference the secret
3634
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 }} .
3836
docker tag ghcr.io/bardin08/trumpee-gateway:${{ github.event.release.tag_name}} ghcr.io/bardin08/trumpee-gateway:latest
3937
docker push ghcr.io/bardin08/trumpee-gateway --all-tags

Dockerfile

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS build-env
33
WORKDIR /src
44

55
ARG NUGET_API_KEY
6-
ENV NUGET_API_KEY=$NUGET_API_KEY
76

87
# Copy the project files first for better layer caching (if only code changes)
98
COPY *.sln ./

0 commit comments

Comments
 (0)