From f8bc7ac1dec13d1c80a5edf624978c2cdafa2383 Mon Sep 17 00:00:00 2001 From: thatton Date: Fri, 10 Jan 2025 16:39:47 +0000 Subject: [PATCH 1/2] Update Dockerfile Paths --- SystemAdmin/Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/SystemAdmin/Dockerfile b/SystemAdmin/Dockerfile index 0656924..bf9b397 100644 --- a/SystemAdmin/Dockerfile +++ b/SystemAdmin/Dockerfile @@ -8,11 +8,14 @@ EXPOSE 8081 FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release + WORKDIR /src -COPY ["SystemAdmin.csproj", "."] -RUN dotnet restore "./SystemAdmin.csproj" +COPY ["SystemAdmin/SystemAdmin.csproj", "SystemAdmin/"] + +RUN dotnet restore "./SystemAdmin/./SystemAdmin.csproj" + COPY . . -WORKDIR "/src/." +WORKDIR "/src/SystemAdmin" RUN dotnet build "./SystemAdmin.csproj" -c $BUILD_CONFIGURATION -o /app/build FROM build AS publish From 309ba1f36843e956bfefbb114c5be7af23cc6d1f Mon Sep 17 00:00:00 2001 From: thattonBL <79150422+thattonBL@users.noreply.github.com> Date: Fri, 10 Jan 2025 16:44:15 +0000 Subject: [PATCH 2/2] Update azure-pipelines.yml for Azure Pipelines Wrong container name specified fixed. --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9acd07b..a3d7482 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -4,7 +4,7 @@ pool: vmImage: 'ubuntu-latest' variables: - AZURE_CONTAINER_APP_NAME: 'gateway-global-integration-ui-iac' + AZURE_CONTAINER_APP_NAME: 'gateway-global-int-ui-iac' RESOURCE_GROUP: 'Gateway-Resources-IAC' DOCKER_IMAGE: 'attonbomb/systemadmin' # Replace with your Docker Hub image path AZURE_SUBSCRIPTION: 'Gateway-Resources-IAC-MI-Conn-2'