improve for bin/sh
Docker Build and Release Upload / build (push) Has been cancelled

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