You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2023/03/22 08:31:43 UTC
[kyuubi] branch master updated: [KYUUBI #4576] Multi arch build for ARM support in Docker Hub
This is an automated email from the ASF dual-hosted git repository.
chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git
The following commit(s) were added to refs/heads/master by this push:
new da000c605 [KYUUBI #4576] Multi arch build for ARM support in Docker Hub
da000c605 is described below
commit da000c6054b873c5e1dc2a2d3c912eb0f7002533
Author: phyyou <gy...@gmail.com>
AuthorDate: Wed Mar 22 16:31:31 2023 +0800
[KYUUBI #4576] Multi arch build for ARM support in Docker Hub
Close #4576
* Setup QEMU and Buildx.
* Use action docker/build-push-actionv4.
* build multi platform (amd64, arm64)
* build cache for faster build ✨
### _Why are the changes needed?_
Based on This [Disscussion](https://github.com/apache/kyuubi/discussions/4487) and [Issue](https://github.com/apache/kyuubi/issues/4576)
Update publish-snapshot-docker workflow
### _How was this patch tested?_
now test in progress...
![image](https://user-images.githubusercontent.com/34825352/226776684-4d57dd0e-141a-44a0-a023-8eb43b57bdba.png)
https://github.com/phyyou/_kyuubi/actions/runs/4485366649/jobs/7886838765
- [x] Add screenshots for manual tests if appropriate
- [x] [Run test](https://kyuubi.readthedocs.io/en/master/develop_tools/testing.html#running-tests) locally before make a pull request
Closes #4577 from phyyou/feat/buildx-at-docker-hub-snapshot.
Closes #4576
b75b05e9d [phyyou] chore(build): Chore on workflow yml
11353e7df [phyyou] build: Update publish snapshot docker workflow
Authored-by: phyyou <gy...@gmail.com>
Signed-off-by: Cheng Pan <ch...@apache.org>
---
.github/workflows/publish-snapshot-docker.yml | 21 +++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/publish-snapshot-docker.yml b/.github/workflows/publish-snapshot-docker.yml
index 5c9c04d27..3afccee7a 100644
--- a/.github/workflows/publish-snapshot-docker.yml
+++ b/.github/workflows/publish-snapshot-docker.yml
@@ -29,14 +29,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
+ - name: Set up QEMU
+ uses: docker/setup-qemu-action@v2
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- - name: Build Kyuubi Docker Image
- run: docker build --tag apache/kyuubi:master-snapshot --file build/Dockerfile .
- - name: Docker image
- run: docker images
- - name: Push Docker image
- run: docker push apache/kyuubi:master-snapshot
+ - name: Build and Push Kyuubi Docker Image
+ uses: docker/build-push-action@v4
+ with:
+ # build cache on Github Actions, See: https://docs.docker.com/build/cache/backends/gha/#using-dockerbuild-push-action
+ cache-from: type=gha
+ cache-to: type=gha,mode=max
+ context: .
+ file: build/Dockerfile
+ platforms: linux/amd64,linux/arm64
+ push: true
+ tags: apache/kyuubi:master-snapshot