From f0e3a643d90fbc76e3a6aef3950680cb4a018d0a Mon Sep 17 00:00:00 2001 From: Matej Hires Date: Mon, 25 Sep 2023 21:10:07 +0200 Subject: [PATCH] Changed project paths --- .github/workflows/docker-image.yml | 2 +- Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 704b8ae..db89e0f 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -25,6 +25,6 @@ jobs: uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671 with: context: . - file: ./AutomatedTestingApp/Dockerfile + file: ./Dockerfile push: true tags: latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 6d6a72a..a07e27d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ EXPOSE 443 FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src -COPY ["AutomatedTestingApp/AutomatedTestingApp.csproj", "AutomatedTestingApp/"] -RUN dotnet restore "AutomatedTestingApp/AutomatedTestingApp.csproj" +COPY ["AutomatedTestingApp/AutomatedTestingApp/AutomatedTestingApp.csproj", "AutomatedTestingApp/"] +RUN dotnet restore "AutomatedTestingApp/AutomatedTestingApp/AutomatedTestingApp.csproj" COPY . . WORKDIR "/src/AutomatedTestingApp" RUN dotnet build "AutomatedTestingApp.csproj" -c Release -o /app/build