Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
iammukeshm committed Oct 22, 2024
1 parent 57605d9 commit 1500c59
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/blazor.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Blazor
name: blazor

on:
workflow_dispatch:
Expand All @@ -9,13 +9,15 @@ on:
paths:
- "src/apps/blazor/**"
- "src/Directory.Packages.props"
- "src/Dockerfile.Blazor"

pull_request:
branches:
- main
paths:
- "src/apps/blazor/**"
- "src/Directory.Packages.props"
- "src/Dockerfile.Blazor"

jobs:
build:
Expand Down Expand Up @@ -47,7 +49,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: build and publish to github container registry
working-directory: ./src/apps/blazor/
working-directory: ./src/
run: |
docker build -t ghcr.io/${{ github.repository_owner }}/blazor:latest -f Dockerfile .
docker build -t ghcr.io/${{ github.repository_owner }}/blazor:latest -f Dockerfile.Blazor .
docker push ghcr.io/${{ github.repository_owner }}/blazor:latest
2 changes: 1 addition & 1 deletion .github/workflows/webapi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: WebAPI
name: webapi

on:
workflow_dispatch:
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/apps/blazor/Dockerfile → src/Dockerfile.Blazor
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

COPY . ./
RUN dotnet publish ./client/Client.csproj -c Release -o output
RUN dotnet publish ./apps/blazor/client/Client.csproj -c Release -o output

FROM nginx:alpine
WORKDIR /usr/share/nginx/html
COPY --from=build-env /app/output/wwwroot .

COPY nginx.conf /etc/nginx/nginx.conf
COPY ./apps/blazor/nginx.conf /etc/nginx/nginx.conf

EXPOSE 80
3 changes: 0 additions & 3 deletions src/FSH.Starter.sln
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Todo", "Todo", "{79981A5A-2
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "_Framework", "_Framework", "{05248A38-0F34-4E59-A3D1-B07097987AFB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Shared", "Shared", "{32F5383E-4201-4527-98DB-40715BB9F574}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Migrations", "Migrations", "{12F8343D-20A6-4E24-B0F5-3A66F2228CF6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WebApi", "WebApi", "{CE64E92B-E088-46FB-9028-7FB6B67DEC55}"
Expand Down Expand Up @@ -258,7 +256,6 @@ Global
{93324D12-DE1B-4C1B-934A-92AA140FF6F6} = {F3DF5AC5-8CDC-46D4-969D-1245A6880215}
{79981A5A-207A-4A16-A21B-5E80394082F6} = {F3DF5AC5-8CDC-46D4-969D-1245A6880215}
{05248A38-0F34-4E59-A3D1-B07097987AFB} = {CE64E92B-E088-46FB-9028-7FB6B67DEC55}
{32F5383E-4201-4527-98DB-40715BB9F574} = {F3DF5AC5-8CDC-46D4-969D-1245A6880215}
{12F8343D-20A6-4E24-B0F5-3A66F2228CF6} = {CE64E92B-E088-46FB-9028-7FB6B67DEC55}
{294D6FF8-9379-4AB8-A203-8D0CC85FBFBB} = {05248A38-0F34-4E59-A3D1-B07097987AFB}
{A1D828E4-6B83-4BA2-B8E9-B21CE3BE8A31} = {05248A38-0F34-4E59-A3D1-B07097987AFB}
Expand Down

0 comments on commit 1500c59

Please sign in to comment.