diff --git a/.github/workflows/build-cpu-docker-worker.yml b/.github/workflows/build-cpu-docker-worker.yml index 1265e69..7972205 100644 --- a/.github/workflows/build-cpu-docker-worker.yml +++ b/.github/workflows/build-cpu-docker-worker.yml @@ -2,10 +2,13 @@ name: 构建cpu容器 on: push: - branches: - # 确保这是你正在使用的分支名称 - - main - + paths: + - 'cpu-dockerfile' # 监测指定的 Dockerfile 文件路径 + # push: + # branches: + # # 确保这是你正在使用的分支名称 + # - main + permissions: contents: write diff --git a/.github/workflows/build-gpu-docker-worker.yml b/.github/workflows/build-gpu-docker-worker.yml index 9040d0f..7140bfd 100644 --- a/.github/workflows/build-gpu-docker-worker.yml +++ b/.github/workflows/build-gpu-docker-worker.yml @@ -2,9 +2,12 @@ name: 构建gpu容器 on: push: - branches: - # 确保这是你正在使用的分支名称 - - main + paths: + - 'gpu-dockerfile' # 监测指定的 Dockerfile 文件路径 + # push: + # branches: + # # 确保这是你正在使用的分支名称 + # - main permissions: contents: write diff --git a/cpu-dockerfile b/cpu-dockerfile index b763396..66f559b 100644 --- a/cpu-dockerfile +++ b/cpu-dockerfile @@ -3,7 +3,7 @@ FROM nvidia/cuda:12.3.1-base-ubuntu22.04 USER root # 设置环境变量 -ARG version=1.8.7 +ARG version=1.9.7 ENV name="dockerworker" ENV num=1 ENV token="MUHHZYNAUSWPQAPQVEEDPWVOIQTBJBBZFAJKZURUGBAIKFAPHRUYPUMFGFEG"