mirror of
https://mirror.suhoan.cn/https://github.com/EasyTier/EasyTier.git
synced 2025-12-12 20:57:26 +08:00
fix docker file (#1219)
This commit is contained in:
18
.github/workflows/Dockerfile
vendored
18
.github/workflows/Dockerfile
vendored
@@ -8,24 +8,14 @@ WORKDIR /tmp/output
|
|||||||
RUN ARTIFACT_ARCH=""; \
|
RUN ARTIFACT_ARCH=""; \
|
||||||
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
|
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
|
||||||
ARTIFACT_ARCH="x86_64"; \
|
ARTIFACT_ARCH="x86_64"; \
|
||||||
|
elif [ "$TARGETPLATFORM" = "linux/arm/v6" ]; then \
|
||||||
|
ARTIFACT_ARCH="armhf"; \
|
||||||
|
elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
|
||||||
|
ARTIFACT_ARCH="armv7hf"; \
|
||||||
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
|
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
|
||||||
ARTIFACT_ARCH="aarch64"; \
|
ARTIFACT_ARCH="aarch64"; \
|
||||||
elif [ "$TARGETPLATFORM" = "linux/riscv64" ]; then \
|
elif [ "$TARGETPLATFORM" = "linux/riscv64" ]; then \
|
||||||
ARTIFACT_ARCH="riscv64"; \
|
ARTIFACT_ARCH="riscv64"; \
|
||||||
elif [ "$TARGETPLATFORM" = "linux/mips" ]; then \
|
|
||||||
ARTIFACT_ARCH="mips"; \
|
|
||||||
elif [ "$TARGETPLATFORM" = "linux/mipsel" ]; then \
|
|
||||||
ARTIFACT_ARCH="mipsel"; \
|
|
||||||
elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then \
|
|
||||||
ARTIFACT_ARCH="armv7hf"; \
|
|
||||||
elif [ "$TARGETPLATFORM" = "linux/arm/v6" ]; then \
|
|
||||||
ARTIFACT_ARCH="armhf"; \
|
|
||||||
elif [ "$TARGETPLATFORM" = "linux/arm/v5" ]; then \
|
|
||||||
ARTIFACT_ARCH="arm"; \
|
|
||||||
elif [ "$TARGETPLATFORM" = "linux/arm" ]; then \
|
|
||||||
ARTIFACT_ARCH="armv7"; \
|
|
||||||
elif [ "$TARGETPLATFORM" = "linux/loong64" ]; then \
|
|
||||||
ARTIFACT_ARCH="loongarch64"; \
|
|
||||||
else \
|
else \
|
||||||
echo "Unsupported architecture: $TARGETPLATFORM"; \
|
echo "Unsupported architecture: $TARGETPLATFORM"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
|
|||||||
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
@@ -97,7 +97,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: ./docker_context
|
context: ./docker_context
|
||||||
platforms: linux/amd64,linux/arm64,linux/riscv64,linux/mips,linux/mipsel,linux/arm/v7,linux/arm/v6,linux/arm/v5,linux/arm,linux/loong64
|
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/riscv64
|
||||||
push: true
|
push: true
|
||||||
file: .github/workflows/Dockerfile
|
file: .github/workflows/Dockerfile
|
||||||
tags: ${{ steps.tags.outputs.tags }}
|
tags: ${{ steps.tags.outputs.tags }}
|
||||||
|
|||||||
Reference in New Issue
Block a user