Skip to content

Commit 83e0f19

Browse files
committed
Replace ContainerImageTag and remove docker push commands
Updated the `dotnet publish` commands to use `-p:ContainerImageTags` instead of `-p:ContainerImageTag`, enabling support for multiple image tags. Removed explicit `docker push` commands for API and Blazor images, as the new parameter likely handles this step automatically or the process has been relocated.
1 parent 0231784 commit 83e0f19

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build-and-push-containers.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
-p:PublishProfile=DefaultContainer \
3333
-p:ContainerRegistry=ghcr.io \
3434
-p:ContainerRepository=${{ github.repository_owner }}/fsh-playground-api \
35-
-p:ContainerImageTag=${{ github.sha }}
35+
-p:ContainerImageTags=${{ github.sha }}
3636
3737
- name: Publish Blazor container image
3838
run: |
@@ -41,7 +41,7 @@ jobs:
4141
-p:PublishProfile=DefaultContainer \
4242
-p:ContainerRegistry=ghcr.io \
4343
-p:ContainerRepository=${{ github.repository_owner }}/fsh-playground-blazor \
44-
-p:ContainerImageTag=${{ github.sha }}
44+
-p:ContainerImageTags=${{ github.sha }}
4545
4646
- name: Push API image to GHCR
4747
run: |
@@ -50,4 +50,3 @@ jobs:
5050
- name: Push Blazor image to GHCR
5151
run: |
5252
docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-blazor:${{ github.sha }}
53-

0 commit comments

Comments
 (0)