@@ -30,19 +30,33 @@ jobs:
3030 password : ${{ secrets.GITHUB_TOKEN }}
3131
3232 - name : Publish API container image
33- working-directory : ../src/Playground/Playground.Api/Playground.Api.csproj
33+ working-directory : ${{ github.workspace }}
3434 run : |
35- dotnet publish -c Release -p:RuntimeIdentifier=linux-x64 -p:ContainerRepository=${{ github.repository_owner }}/fsh-playground-api -p:ContainerImageTags='${{ github.sha }};latest'
35+ dotnet publish src/Playground/Playground.Api/Playground.Api.csproj \
36+ -c Release -r linux-x64 \
37+ -p:PublishProfile=DefaultContainer \
38+ -p:ContainerRegistry=ghcr.io \
39+ -p:ContainerRepository=${{ github.repository_owner }}/fsh-playground-api \
40+ -p:ContainerImageTags='${{ github.sha }};latest'
3641
3742 - name : Publish Blazor container image
38- working-directory : ../src/Playground/Playground.Blazor/Playground.Blazor.csproj
43+ working-directory : ${{ github.workspace }}
3944 run : |
40- dotnet publish -c Release -p:RuntimeIdentifier=linux-x64 -p:ContainerRepository=${{ github.repository_owner }}/fsh-playground-blazor -p:ContainerImageTags='${{ github.sha }};latest'
45+ dotnet publish src/Playground/Playground.Blazor/Playground.Blazor.csproj \
46+ -c Release -r linux-x64 \
47+ -p:PublishProfile=DefaultContainer \
48+ -p:ContainerRegistry=ghcr.io \
49+ -p:ContainerRepository=${{ github.repository_owner }}/fsh-playground-blazor \
50+ -p:ContainerImageTags='${{ github.sha }};latest'
4151
4252 - name : Push API images to GHCR
53+ working-directory : ${{ github.workspace }}
4354 run : |
44- docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-api --all-tags
55+ docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-api:${{ github.sha }}
56+ docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-api:latest
4557
4658 - name : Push Blazor images to GHCR
59+ working-directory : ${{ github.workspace }}
4760 run : |
48- docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-blazor --all-tags
61+ docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-blazor:${{ github.sha }}
62+ docker push ghcr.io/${{ github.repository_owner }}/fsh-playground-blazor:latest
0 commit comments