From 535ba1bcec43a5fef1140176341a798edcfcf5c1 Mon Sep 17 00:00:00 2001 From: Abner Date: Thu, 19 Sep 2024 15:29:30 +0800 Subject: [PATCH] add ci action (#1752) Signed-off-by: Abner-1 --- .github/workflows/docker-image.yaml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml index b400f2be3f..611c8c80de 100644 --- a/.github/workflows/docker-image.yaml +++ b/.github/workflows/docker-image.yaml @@ -13,6 +13,16 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.HUB_KRIUSE }} - name: Build the Docker image - run: IMG=openkruise/kruise-manager:${{ github.ref_name }} & make docker-multiarch + run: | + docker buildx create --use --platform=linux/amd64,linux/arm64,linux/ppc64le --name multi-platform-builder + docker buildx ls + IMG=openkruise/kruise-manager:${{ github.ref_name }} make docker-multiarch