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