Fix bad if command
Docker Build and Release Upload / build (push) Failing after 53s

This commit is contained in:
2025-07-10 18:21:55 -07:00
parent 9f24f8453e
commit d5e7b8b95d
+3 -3
View File
@@ -43,12 +43,12 @@ COPY ./src/MistoxWebsite.Server/ ./
ARG TARGETOS TARGETARCH ARG TARGETOS TARGETARCH
# Build the source # Build the source
RUN if [ $TARGETARCH = "arm64" ]; then \ RUN if [ "$TARGETARCH" = "arm64" ]; then \
RID="arm64" \ RID="arm64" \
elif [ "$TARGETARCHARCH" = "amd64" ]; then \ elif [ "$TARGETARCH" = "amd64" ]; then \
RID="x64" \ RID="x64" \
else \ else \
echo "Unsupported ARCH: $ARCH" \ echo "Unsupported ARCH: $TARGETARCH" \
exit 1 \ exit 1 \
fi && \ fi && \
dotnet publish './MistoxWebsite.Server.csproj' -c Release -r $TARGETOS-$RID -o /app/publish dotnet publish './MistoxWebsite.Server.csproj' -c Release -r $TARGETOS-$RID -o /app/publish