diff --git a/.github/workflows/publish-gpu-builder.yaml b/.github/workflows/publish-gpu-builder.yaml index 7778b17a2d8ea..cd5a9f1b9e468 100644 --- a/.github/workflows/publish-gpu-builder.yaml +++ b/.github/workflows/publish-gpu-builder.yaml @@ -25,7 +25,7 @@ jobs: fail-fast: false matrix: os: [ubuntu20.04] - arch: [amd64&arm64] + arch: [amd64] env: OS_NAME: ${{ matrix.os }} IMAGE_ARCH: ${{ matrix.arch }} @@ -39,27 +39,27 @@ jobs: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" # - name: Setup upterm session # uses: lhotari/action-upterm@v1 - - name: Docker Pull - shell: bash - run: | - docker run --rm --privileged tonistiigi/binfmt:latest --install arm64 - docker buildx ls - docker buildx create --use --name=milvus --driver docker-container - name: Docker Build if: success() && github.event_name == 'pull_request' && github.repository == 'milvus-io/milvus' shell: bash run: | - docker buildx ls - docker buildx build --platform linux/amd64,linux/arm64 -t milvusdb/milvus-env:gpu-${OS_NAME}-${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }} -f build/docker/builder/gpu/${OS_NAME}/Dockerfile . + docker info + docker build -t milvusdb/milvus-env:gpu-${OS_NAME}-${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }} -f build/docker/builder/gpu/${OS_NAME}/Dockerfile . - name: Docker Build&Push if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus' shell: bash run: | - docker buildx ls + docker info docker login -u ${{ secrets.DOCKERHUB_USER }} \ -p ${{ secrets.DOCKERHUB_TOKEN }} - docker buildx build --platform linux/amd64,linux/arm64 --push -t milvusdb/milvus-env:gpu-${OS_NAME}-${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }} -f build/docker/builder/gpu/${OS_NAME}/Dockerfile . - docker buildx build --platform linux/amd64,linux/arm64 --push -t milvusdb/milvus-env:gpu-${OS_NAME}-latest -f build/docker/builder/gpu/${OS_NAME}/Dockerfile . + # Building the first image + docker build -t milvusdb/milvus-env:gpu-${OS_NAME}-${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }} -f build/docker/builder/gpu/${OS_NAME}/Dockerfile . + docker push milvusdb/milvus-env:gpu-${OS_NAME}-${{ steps.extracter.outputs.version }}-${{ steps.extracter.outputs.sha_short }} + + # Building the second image + docker build -t milvusdb/milvus-env:gpu-${OS_NAME}-latest -f build/docker/builder/gpu/${OS_NAME}/Dockerfile . + docker push milvusdb/milvus-env:gpu-${OS_NAME}-latest + - name: Update Builder Image Changes if: success() && github.event_name == 'push' && github.repository == 'milvus-io/milvus' && matrix.os == 'ubuntu20.04' continue-on-error: true