Skip to content

Commit 2a43eca

Browse files
committed
fix(ci): add PACKAGE_NAME env variable with kebab-cased container name for GHCR
1 parent c6c29b5 commit 2a43eca

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/dotnet.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
env:
1616
DOTNET_VERSION: 8.0.x
17+
PACKAGE_NAME: nanotaboada/dotnet-samples-aspnetcore-webapi
1718

1819
jobs:
1920
build:
@@ -133,6 +134,6 @@ jobs:
133134
context: .
134135
push: true
135136
tags: |
136-
ghcr.io/${{ github.repository }}:latest
137-
ghcr.io/${{ github.repository }}:main
138-
ghcr.io/${{ github.repository }}:sha-${{ github.sha }}
137+
ghcr.io/${{ env.PACKAGE_NAME }}:latest
138+
ghcr.io/${{ env.PACKAGE_NAME }}:main
139+
ghcr.io/${{ env.PACKAGE_NAME }}:sha-${{ github.sha }}

0 commit comments

Comments
 (0)