Skip to content

Commit

Permalink
Dockerfile paths
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcrane committed Nov 24, 2023
1 parent 00fd736 commit c8e8fbd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
name: build and push
with:
image-name: "preservation-api"
dockerfile: "./LeedsExperiment/Preservation.API/Dockerfile"
context: "./LeedsExperiment/Preservation.API"
dockerfile: "./Preservation.API/Dockerfile"
context: "LeedsExperiment"
github-token: ${{ secrets.GITHUB_TOKEN }}

build-push-dashboard:
Expand All @@ -24,9 +24,9 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/docker-build-and-push
with:
image-name: "dashboard"
dockerfile: "./LeedsExperiment/Dashboard/Dockerfile"
context: "./LeedsExperiment/Dashboard"
image-name: "dashboard"
dockerfile: ./Dashboard/Dockerfile
context: LeedsExperiment/
github-token: ${{ secrets.GITHUB_TOKEN }}


2 changes: 1 addition & 1 deletion LeedsExperiment/Preservation.API/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN dotnet build "./Preservation.API.csproj" -c $BUILD_CONFIGURATION -o /app/bui

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./Preservation.API.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
RUN dotnet publish "./Preservation.API.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false /p:ErrorOnDuplicatePublishOutputFiles=false

FROM base AS final
WORKDIR /app
Expand Down

0 comments on commit c8e8fbd

Please sign in to comment.