Compare commits
3 Commits
24962fba03
...
75bc9509c5
| Author | SHA1 | Date | |
|---|---|---|---|
| 75bc9509c5 | |||
| 92278ae375 | |||
| d4805b06e6 |
@@ -12,6 +12,7 @@ env:
|
|||||||
CV_MATCHER_API_IMAGE: apps/myai-cv-matcher-api
|
CV_MATCHER_API_IMAGE: apps/myai-cv-matcher-api
|
||||||
RAG_API_IMAGE: apps/myai-rag-api
|
RAG_API_IMAGE: apps/myai-rag-api
|
||||||
WEB_IMAGE: apps/myai-web
|
WEB_IMAGE: apps/myai-web
|
||||||
|
JOB_IMAGE: apps/myai-job
|
||||||
IMAGE_TAG: staging
|
IMAGE_TAG: staging
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -33,20 +34,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Build API image
|
- name: Build API image
|
||||||
run: |
|
run: |
|
||||||
docker build -f api/Dockerfile -t "${REGISTRY_HOST}/${API_IMAGE}:${IMAGE_TAG}" .
|
docker build -f Apis/api/Dockerfile -t "${REGISTRY_HOST}/${API_IMAGE}:${IMAGE_TAG}" .
|
||||||
|
|
||||||
- name: Build CV Matcher API image
|
- name: Build CV Matcher API image
|
||||||
run: |
|
run: |
|
||||||
docker build -f cv-matcher-api/Dockerfile -t "${REGISTRY_HOST}/${CV_MATCHER_API_IMAGE}:${IMAGE_TAG}" .
|
docker build -f Apis/cv-matcher-api/Dockerfile -t "${REGISTRY_HOST}/${CV_MATCHER_API_IMAGE}:${IMAGE_TAG}" .
|
||||||
|
|
||||||
- name: Build RAG API image
|
- name: Build RAG API image
|
||||||
run: |
|
run: |
|
||||||
docker build -f rag-api/Dockerfile -t "${REGISTRY_HOST}/${RAG_API_IMAGE}:${IMAGE_TAG}" .
|
docker build -f Apis/rag-api/Dockerfile -t "${REGISTRY_HOST}/${RAG_API_IMAGE}:${IMAGE_TAG}" .
|
||||||
|
|
||||||
- name: Build Web image
|
- name: Build Web image
|
||||||
run: |
|
run: |
|
||||||
docker build -f web/Dockerfile -t "${REGISTRY_HOST}/${WEB_IMAGE}:${IMAGE_TAG}" .
|
docker build -f web/Dockerfile -t "${REGISTRY_HOST}/${WEB_IMAGE}:${IMAGE_TAG}" .
|
||||||
|
|
||||||
|
- name: Build Job worker image
|
||||||
|
run: |
|
||||||
|
docker build -f Jobs/cv-cleanup-job/Dockerfile -t "${REGISTRY_HOST}/${JOB_IMAGE}:${IMAGE_TAG}" .
|
||||||
|
|
||||||
- name: Push API image
|
- name: Push API image
|
||||||
run: |
|
run: |
|
||||||
docker push "${REGISTRY_HOST}/${API_IMAGE}:${IMAGE_TAG}"
|
docker push "${REGISTRY_HOST}/${API_IMAGE}:${IMAGE_TAG}"
|
||||||
@@ -62,3 +67,7 @@ jobs:
|
|||||||
- name: Push Web image
|
- name: Push Web image
|
||||||
run: |
|
run: |
|
||||||
docker push "${REGISTRY_HOST}/${WEB_IMAGE}:${IMAGE_TAG}"
|
docker push "${REGISTRY_HOST}/${WEB_IMAGE}:${IMAGE_TAG}"
|
||||||
|
|
||||||
|
- name: Push Job worker image
|
||||||
|
run: |
|
||||||
|
docker push "${REGISTRY_HOST}/${JOB_IMAGE}:${IMAGE_TAG}"
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
|
ARG BUILD_CONFIGURATION=Release
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
COPY Apis/api/api.csproj Apis/api/
|
||||||
|
COPY Apis/shared-models/shared-models.csproj Apis/shared-models/
|
||||||
|
COPY Apis/api-models/api-models.csproj Apis/api-models/
|
||||||
|
COPY Apis/cv-matcher-api-models/cv-matcher-api-models.csproj Apis/cv-matcher-api-models/
|
||||||
|
COPY Helpers/startup-helpers/startup-helpers.csproj Helpers/startup-helpers/
|
||||||
|
|
||||||
|
RUN dotnet restore Apis/api/api.csproj
|
||||||
|
|
||||||
|
COPY Apis/api/ Apis/api/
|
||||||
|
COPY Apis/shared-models/ Apis/shared-models/
|
||||||
|
COPY Apis/api-models/ Apis/api-models/
|
||||||
|
COPY Apis/cv-matcher-api-models/ Apis/cv-matcher-api-models/
|
||||||
|
COPY Helpers/startup-helpers/ Helpers/startup-helpers/
|
||||||
|
|
||||||
|
RUN dotnet publish Apis/api/api.csproj -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||||
|
WORKDIR /app
|
||||||
|
EXPOSE 8080
|
||||||
|
ENV ASPNETCORE_URLS=http://0.0.0.0:8080
|
||||||
|
|
||||||
|
COPY --from=build /app/publish .
|
||||||
|
|
||||||
|
ENTRYPOINT ["dotnet", "api.dll"]
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<ProjectReference Include="..\api-models\api-models.csproj" />
|
<ProjectReference Include="..\api-models\api-models.csproj" />
|
||||||
<ProjectReference Include="..\cv-matcher-api-models\cv-matcher-api-models.csproj" />
|
<ProjectReference Include="..\cv-matcher-api-models\cv-matcher-api-models.csproj" />
|
||||||
<ProjectReference Include="..\shared-models\shared-models.csproj" />
|
<ProjectReference Include="..\shared-models\shared-models.csproj" />
|
||||||
<ProjectReference Include="..\startup-helpers\startup-helpers.csproj" />
|
<ProjectReference Include="..\..\Helpers\startup-helpers\startup-helpers.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
|
ARG BUILD_CONFIGURATION=Release
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
COPY Apis/cv-matcher-api/cv-matcher-api.csproj Apis/cv-matcher-api/
|
||||||
|
COPY Apis/shared-models/shared-models.csproj Apis/shared-models/
|
||||||
|
COPY Apis/cv-matcher-api-models/cv-matcher-api-models.csproj Apis/cv-matcher-api-models/
|
||||||
|
COPY Helpers/common-helpers/common-helpers.csproj Helpers/common-helpers/
|
||||||
|
COPY Helpers/startup-helpers/startup-helpers.csproj Helpers/startup-helpers/
|
||||||
|
|
||||||
|
RUN dotnet restore Apis/cv-matcher-api/cv-matcher-api.csproj
|
||||||
|
|
||||||
|
COPY Apis/cv-matcher-api/ Apis/cv-matcher-api/
|
||||||
|
COPY Apis/shared-models/ Apis/shared-models/
|
||||||
|
COPY Apis/cv-matcher-api-models/ Apis/cv-matcher-api-models/
|
||||||
|
COPY Helpers/common-helpers/ Helpers/common-helpers/
|
||||||
|
COPY Helpers/startup-helpers/ Helpers/startup-helpers/
|
||||||
|
|
||||||
|
RUN dotnet publish Apis/cv-matcher-api/cv-matcher-api.csproj -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||||
|
WORKDIR /app
|
||||||
|
EXPOSE 8080
|
||||||
|
ENV ASPNETCORE_URLS=http://0.0.0.0:8080
|
||||||
|
|
||||||
|
COPY --from=build /app/publish .
|
||||||
|
|
||||||
|
ENTRYPOINT ["dotnet", "cv-matcher-api.dll"]
|
||||||
@@ -77,9 +77,9 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\common-helpers\common-helpers.csproj" />
|
<ProjectReference Include="..\..\Helpers\common-helpers\common-helpers.csproj" />
|
||||||
<ProjectReference Include="..\cv-matcher-api-models\cv-matcher-api-models.csproj" />
|
<ProjectReference Include="..\cv-matcher-api-models\cv-matcher-api-models.csproj" />
|
||||||
<ProjectReference Include="..\shared-models\shared-models.csproj" />
|
<ProjectReference Include="..\shared-models\shared-models.csproj" />
|
||||||
<ProjectReference Include="..\startup-helpers\startup-helpers.csproj" />
|
<ProjectReference Include="..\..\Helpers\startup-helpers\startup-helpers.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||||
|
ARG BUILD_CONFIGURATION=Release
|
||||||
|
WORKDIR /src
|
||||||
|
|
||||||
|
COPY Apis/rag-api/rag-api.csproj Apis/rag-api/
|
||||||
|
COPY Apis/shared-models/shared-models.csproj Apis/shared-models/
|
||||||
|
COPY Apis/rag-api-models/rag-api-models.csproj Apis/rag-api-models/
|
||||||
|
COPY Helpers/common-helpers/common-helpers.csproj Helpers/common-helpers/
|
||||||
|
COPY Helpers/startup-helpers/startup-helpers.csproj Helpers/startup-helpers/
|
||||||
|
|
||||||
|
RUN dotnet restore Apis/rag-api/rag-api.csproj
|
||||||
|
|
||||||
|
COPY Apis/rag-api/ Apis/rag-api/
|
||||||
|
COPY Apis/shared-models/ Apis/shared-models/
|
||||||
|
COPY Apis/rag-api-models/ Apis/rag-api-models/
|
||||||
|
COPY Helpers/common-helpers/ Helpers/common-helpers/
|
||||||
|
COPY Helpers/startup-helpers/ Helpers/startup-helpers/
|
||||||
|
|
||||||
|
RUN dotnet publish Apis/rag-api/rag-api.csproj -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final
|
||||||
|
WORKDIR /app
|
||||||
|
EXPOSE 8080
|
||||||
|
ENV ASPNETCORE_URLS=http://0.0.0.0:8080
|
||||||
|
|
||||||
|
COPY --from=build /app/publish .
|
||||||
|
|
||||||
|
ENTRYPOINT ["dotnet", "rag-api.dll"]
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user