Skip to content

Commit

Permalink
fix: support multi arch image building
Browse files Browse the repository at this point in the history
- use dockerx to build multi-arch containers

Signed-off-by: jingfelix <jingfelix@outlook.com>
  • Loading branch information
jingfelix authored and chenchongbiao committed May 11, 2024
1 parent 6243bee commit 3c36574
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ jobs:
codename: [ beige ]

steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Read Rootfs version
run: |
echo "ROOTFS_VERSION=$(curl -s https://raw.githubusercontent.com/deepin-community/deepin-rootfs/master/version.txt | cat)" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ ROOTFS_URL=https://github.com/deepin-community/deepin-rootfs/releases/download/$

curl -OLS $ROOTFS_URL

docker build --build-arg ROOTFS=$ROOTFS -t ${OWNER}/deepin:${CODENAME}-${ARCH}-${VERSION} .
docker buildx build --platform linux/${ARCH} --build-arg ROOTFS=$ROOTFS -t ${OWNER}/deepin:${CODENAME}-${ARCH}-${VERSION} .

0 comments on commit 3c36574

Please sign in to comment.