Skip to content

Commit 0decc29

Browse files
committed
fix: Enclose ContainerImageTags in quotes and update push commands for API and Blazor images
1 parent 81244c3 commit 0decc29

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
-p:PublishProfile=DefaultContainer \
3737
-p:ContainerRegistry=ghcr.io \
3838
-p:ContainerRepository=${{ github.repository_owner }}/fsh-playground-api \
39-
-p:ContainerImageTags=${{ github.sha }};latest
39+
-p:ContainerImageTags="${{ github.sha }};latest"
4040
4141
- name: Publish Blazor container image
4242
run: |
@@ -45,12 +45,14 @@ jobs:
4545
-p:PublishProfile=DefaultContainer \
4646
-p:ContainerRegistry=ghcr.io \
4747
-p:ContainerRepository=${{ github.repository_owner }}/fsh-playground-blazor \
48-
-p:ContainerImageTags=${{ github.sha }};latest
48+
-p:ContainerImageTags="${{ github.sha }};latest"
4949
50-
- name: Push API image to GHCR
50+
- name: Push API images to GHCR
5151
run: |
52-
docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-api --all-tags
52+
docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-api:${{ github.sha }}
53+
docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-api:latest
5354
54-
- name: Push Blazor image to GHCR
55+
- name: Push Blazor images to GHCR
5556
run: |
56-
docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-blazor --all-tags
57+
docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-blazor:${{ github.sha }}
58+
docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-blazor:latest

0 commit comments

Comments
 (0)