From ceed895c3117eb4de3c33f039a09fd0275c09594 Mon Sep 17 00:00:00 2001 From: Wang Date: Mon, 25 Sep 2023 14:31:43 +0800 Subject: [PATCH] Add bigdl inference cpu image build --- .github/workflows/manually_build.yml | 33 ++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/manually_build.yml b/.github/workflows/manually_build.yml index 1e70c0a1..66ef1aa4 100644 --- a/.github/workflows/manually_build.yml +++ b/.github/workflows/manually_build.yml @@ -1,6 +1,10 @@ name: Manually Build on: + pull_request: + branches: [ main ] + paths: + - '.github/workflows/manually_build.yml' workflow_dispatch: inputs: artifact: @@ -10,6 +14,7 @@ on: type: choice options: - all + - bigdl-llm-cpu - bigdl-ppml-gramine-base - bigdl-ppml-trusted-bigdl-llm-gramine-base - bigdl-ppml-trusted-bigdl-llm-gramine-ref @@ -54,6 +59,34 @@ permissions: packages: write jobs: + bigdl-llm-cpu: + # if: ${{ github.event.inputs.artifact == 'bigdl-llm-cpu' || github.event.inputs.artifact == 'all' }} + runs-on: [self-hosted, Shire] + steps: + - uses: actions/checkout@v3 + - name: docker login + run: | + docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD} + - name: bigdl-llm-cpu + run: | + echo "##############################################################" + echo "####### bigdl-llm-cpu ########" + echo "##############################################################" + export image=intelanalytics/bigdl-llm-cpu + cd docker/llm/inference/cpu/docker + sudo docker build \ + --no-cache=true \ + --build-arg http_proxy=${HTTP_PROXY} \ + --build-arg https_proxy=${HTTPS_PROXY} \ + --build-arg no_proxy=${NO_PROXY} \ + --build-arg BASE_IMAGE_NAME=${base_image} \ + --build-arg BASE_IMAGE_TAG=${TAG} \ + -t ${image}:${TAG} -f ./Dockerfile . + sudo docker push ${image}:${TAG} + sudo docker tag ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} + sudo docker push 10.239.45.10/arda/${image}:${TAG} + sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} + bigdl-ppml-gramine-base: if: ${{ github.event.inputs.artifact == 'bigdl-ppml-gramine-base' || github.event.inputs.artifact == 'all' }} runs-on: [self-hosted, Shire]