Skip to content

Commit

Permalink
chose: update container-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermelinosp committed Dec 2, 2024
1 parent 310018e commit 31f9bc1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/container-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ jobs:

strategy:
matrix:
service: ["Inventories", "Orchestrators", "Orders", "Payments", "Stocks"]
service:
["Inventories", "Orchestrators", "Orders", "Payments", "Stocks"]

steps:
# Checkout the repository to access the code
Expand Down Expand Up @@ -43,4 +44,4 @@ jobs:
file: ./${{ matrix.service }}/${{ matrix.service }}.API/Dockerfile
push: true
tags: |
ghcr.io/${{ github.actor }}/${{ env.service_lowercase }}-api:latest
ghcr.io/${{ github.actor }}/${{ env.service_lowercase }}.api:latest
1 change: 1 addition & 0 deletions Inventories/Inventories.API/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ WORKDIR "/src/Inventories/Inventories.API"
RUN dotnet build "Inventories.API.csproj" -c Release -o /app/build

FROM build AS publish
RUN apt-get update && apt-get install -y clang
RUN dotnet publish "Inventories.API.csproj" -c Release -o /app/publish /p:PublishAot=true /p:UseAppHost=false /p:RuntimeIdentifier=linux-x64

FROM base AS final
Expand Down
3 changes: 2 additions & 1 deletion Orchestrators/Orchestrators.API/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ WORKDIR "/src/Orchestrators/Orchestrators.API"
RUN dotnet build "Orchestrators.API.csproj" -c Release -o /app/build

FROM build AS publish
RUN apt-get update && apt-get install -y clang
RUN dotnet publish "Orchestrators.API.csproj" -c Release -o /app/publish /p:PublishAot=true /p:UseAppHost=false /p:RuntimeIdentifier=linux-x64

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Orchestrators.API.dll"]
ENTRYPOINT ["dotnet", "Orchestrators.API.dll"]
1 change: 1 addition & 0 deletions Orders/Orders.API/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ WORKDIR "/src/Orders/Orders.API"
RUN dotnet build "Orders.API.csproj" -c Release -o /app/build

FROM build AS publish
RUN apt-get update && apt-get install -y clang
RUN dotnet publish "Orders.API.csproj" -c Release -o /app/publish /p:PublishAot=true /p:UseAppHost=false /p:RuntimeIdentifier=linux-x64

FROM base AS final
Expand Down
1 change: 1 addition & 0 deletions Payments/Payments.API/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ WORKDIR "/src/Payments/Payments.API"
RUN dotnet build "Payments.API.csproj" -c Release -o /app/build

FROM build AS publish
RUN apt-get update && apt-get install -y clang
RUN dotnet publish "Payments.API.csproj" -c Release -o /app/publish /p:PublishAot=true /p:UseAppHost=false /p:RuntimeIdentifier=linux-x64

FROM base AS final
Expand Down
1 change: 1 addition & 0 deletions Stocks/Stocks.API/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ WORKDIR "/src/Stocks/Stocks.API"
RUN dotnet build "Stocks.API.csproj" -c Release -o /app/build

FROM build AS publish
RUN apt-get update && apt-get install -y clang
RUN dotnet publish "Stocks.API.csproj" -c Release -o /app/publish /p:PublishAot=true /p:UseAppHost=false /p:RuntimeIdentifier=linux-x64

FROM base AS final
Expand Down

0 comments on commit 31f9bc1

Please sign in to comment.