From e9a46dcd6f5810b34289af19cc27bb67e50bc9fc Mon Sep 17 00:00:00 2001 From: ybyang Date: Mon, 6 May 2024 10:55:27 +0800 Subject: [PATCH] build_base --- .github/workflows/base_image_build.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/base_image_build.yaml b/.github/workflows/base_image_build.yaml index da576bb4..356800e0 100644 --- a/.github/workflows/base_image_build.yaml +++ b/.github/workflows/base_image_build.yaml @@ -2,20 +2,22 @@ name: Build Base Image on: push: - paths: - - "docker/gpu/base/**" - + branches: + - main + - grpc env: CUDA_BASE_REPO: cuda-go-python-base jobs: build-base-image: + if: startsWith(github.event.commits[0].message, 'build_base') strategy: matrix: cuda: [11.7,12.1] python: [ 3.9.13 ,3.11.7] golang: [1.20] ubuntu_os: [1804] + runs-on: self-hosted # 项目构建 steps: @@ -41,8 +43,6 @@ jobs: - name: Py39 Build Docker Image -cuda-base uses: docker/build-push-action@v4 with: - cache-from: type=local,src=/tmp/.buildx-cache - cache-to: type=local,dest=/tmp/.buildx-cache context: . file: ./docker/gpu/base/python${{ matrix.python }}/cuda-${{ matrix.cuda }}/Dockerfile builder: ${{ steps.buildx.outputs.name }}