Skip to content

Commit c462a3f

Browse files
committed
Refactor container build step to convert tags format for .NET SDK
1 parent 103715e commit c462a3f

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/container-build.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
4848
- name: Build and push container
4949
run: |
50-
- name: Build and push container
51-
run: |
52-
dotnet publish Web/Web.csproj \
53-
--os linux \
54-
--arch x64 \
55-
-c Release \
56-
--self-contained \
57-
/p:PublishProfile=DefaultContainer \
58-
/p:ContainerImageName=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} \
59-
/p:ContainerImageTags='${{ steps.meta.outputs.tags }}'
50+
# Convert comma-separated tags to semicolon-separated for .NET SDK
51+
TAGS=$(echo "${{ steps.meta.outputs.tags }}" | tr ',' ';')
52+
dotnet publish Web/Web.csproj \
53+
--os linux \
54+
--arch x64 \
55+
-c Release \
56+
--self-contained \
57+
/p:PublishProfile=DefaultContainer \
58+
/p:ContainerRepository=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} \
59+
/p:ContainerImageTags="$TAGS"

0 commit comments

Comments
 (0)