Skip to content

Commit

Permalink
build_base
Browse files Browse the repository at this point in the history
  • Loading branch information
whybeyoung committed May 6, 2024
1 parent ea4b996 commit e9a46dc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/base_image_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand Down

0 comments on commit e9a46dc

Please sign in to comment.