Skip to content

Commit

Permalink
fix: docker buildx
Browse files Browse the repository at this point in the history
Signed-off-by: zwwhdls <[email protected]>
  • Loading branch information
zwwhdls committed Nov 20, 2023
1 parent 17708e7 commit 5c1431d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/juicefs-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ jobs:
image_exist=${{ env.MOUNT_IMAGE_EXIST }}
if [ $image_exist == "false" ]; then
echo "Build JuiceFS new version image"
export DOCKER_CLI_EXPERIMENTAL=enabled
docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
docker buildx create --use --name mybuilder
# export DOCKER_CLI_EXPERIMENTAL=enabled
# docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
# docker buildx create --use --name mybuilder
make -C docker ee-image
make -C docker fuse-ee-image
else
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ jobs:
CSIVERSION: ${{ env.CSI_LATEST_VERSION }}
DASHBOARD_TAG: ${{ env.CSI_LATEST_VERSION }}
run: |
export DOCKER_CLI_EXPERIMENTAL=enabled
docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
docker buildx create --use --name mybuilder
# export DOCKER_CLI_EXPERIMENTAL=enabled
# docker run --rm --privileged docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d
# docker buildx create --use --name mybuilder
make -C docker image-version
make -C docker dashboard-buildx
- name: Setup upterm session
Expand Down
2 changes: 1 addition & 1 deletion docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ image-version:
--build-arg JUICEFS_REPO_REF=$(CE_JUICEFS_VERSION) \
--build-arg JUICEFS_CE_MOUNT_IMAGE=$(JUICEFS_IMAGE):$(CE_VERSION) \
--build-arg JUICEFS_EE_MOUNT_IMAGE=$(JUICEFS_IMAGE):$(EE_VERSION) \
--platform linux/amd64 -f csi.Dockerfile . --push
--platform linux/amd64,linux/arm64 -f csi.Dockerfile . --push

.PHONY: push-version
push-version:
Expand Down

0 comments on commit 5c1431d

Please sign in to comment.