From d933e152a4cf0b847eba700ca51ad753bc290da3 Mon Sep 17 00:00:00 2001 From: Wenxin Zhang Date: Tue, 14 May 2024 09:41:25 +0800 Subject: [PATCH] update Signed-off-by: Wenxin Zhang --- .github/workflows/model_test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/model_test.yml b/.github/workflows/model_test.yml index 4f18c630..fd2b83b6 100644 --- a/.github/workflows/model_test.yml +++ b/.github/workflows/model_test.yml @@ -45,6 +45,11 @@ jobs: steps: - name: Clean Up Working Directory run: sudo rm -rf ${{github.workspace}}/* + + - name: Load environment variables + if: ${{ matrix.device }} == "cpu" + run: + cat ~/actions-runner4/.env >> $GITHUB_ENV - name: Checkout out Repo uses: actions/checkout@v4 @@ -54,7 +59,7 @@ jobs: # We need this because GitHub needs to clone the branch to pipeline - name: Docker Build run: | - docker build -f ${{ github.workspace }}/.github/workflows/docker/common.dockerfile -t ${{ env.DOCKER_NAME }}:${{ env.DOCKER_TAG }} . + docker build -f ${{ github.workspace }}/.github/workflows/docker/common.dockerfile --build-arg http_proxy="${{ env.HTTP_PROXY_IMAGE_BUILD }}" --build-arg https_proxy="${{ env.HTTPS_PROXY_IMAGE_BUILD }}" -t ${{ env.DOCKER_NAME }}:${{ env.DOCKER_TAG }} . - name: Docker Run run: | @@ -64,6 +69,7 @@ jobs: fi docker run -dit --disable-content-trust --privileged --name=${{ env.CONTAINER_NAME }} -v /dev/shm:/dev/shm \ -v ${{ github.workspace }}:/GenAIEval \ + -e http_proxy="${{ env.HTTP_PROXY_IMAGE_BUILD }}" -e https_proxy="${{ env.HTTPS_PROXY_IMAGE_BUILD }}" \ ${{ env.DOCKER_NAME }}:${{ env.DOCKER_TAG }} - name: Binary build