Skip to content

Commit

Permalink
Add linux/arm/v7 build to Docker CI
Browse files Browse the repository at this point in the history
Signed-off-by: Songlin Jiang <[email protected]>
  • Loading branch information
HollowMan6 committed Apr 25, 2024
1 parent 08f741d commit 29a09e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ jobs:
fi
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker buildx build -t $IMAGE_ID:$VERSION --platform linux/amd64,linux/386,linux/arm64,linux/ppc64le --push .
docker buildx build -t $IMAGE_ID:$VERSION --platform linux/amd64,linux/386,linux/arm64,linux/arm/v7,linux/ppc64le --push .
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM rust as builder
COPY . .
RUN apt update && apt install -y build-essential
# Reference: https://github.com/rust-lang/cargo/issues/8719#issuecomment-1207488994
# Install mdbook
RUN cargo install --git https://github.com/HollowMan6/mdBook mdbook
RUN cargo install --path .
RUN --mount=type=tmpfs,target=/root/.cargo cargo install --git https://github.com/HollowMan6/mdBook mdbook
RUN --mount=type=tmpfs,target=/root/.cargo cargo install --path .

FROM python as base
RUN apt-get update \
Expand Down

0 comments on commit 29a09e4

Please sign in to comment.