Skip to content

Commit

Permalink
fix release workflow, failed dotnet build
Browse files Browse the repository at this point in the history
  • Loading branch information
Renat Shajmardanov committed Dec 22, 2023
1 parent 9784b30 commit ca6d5d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy as builder
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-jammy as builder

# Must be linux/amd64 or linux/arm64
ARG TARGETARCH
Expand All @@ -8,12 +8,12 @@ COPY mysql-data-mover.sln .

ENV SOLUTION_NAME "./mysql-data-mover.sln"

RUN dotnet restore ${SOLUTION_NAME} --arch ${TARGETARCH} --packages /packages/${TARGETARCH}
RUN dotnet build --no-restore --source /packages/${TARGETARCH} --configuration Release ${SOLUTION_NAME}
RUN dotnet restore ${SOLUTION_NAME}
RUN dotnet build --no-restore --configuration Release ${SOLUTION_NAME}
RUN dotnet test --no-restore --configuration Release ${SOLUTION_NAME}
RUN dotnet publish --no-restore --source /packages/${TARGETARCH} --configuration Release --property:PublishDir=/output/${TARGETARCH} ${SOLUTION_NAME}
RUN dotnet publish --no-restore --configuration Release --property:PublishDir=/output/${TARGETARCH} ${SOLUTION_NAME}

FROM mcr.microsoft.com/dotnet/runtime:8.0-jammy-chiseled
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/runtime:8.0-jammy-chiseled

# Must be linux/amd64 or linux/arm64
ARG TARGETARCH
Expand Down

0 comments on commit ca6d5d7

Please sign in to comment.