更改自动化构建
This commit is contained in:
parent
24f157c051
commit
844c80dd68
11
.github/workflows/build-cpu-docker-worker.yml
vendored
11
.github/workflows/build-cpu-docker-worker.yml
vendored
@ -2,10 +2,13 @@ name: 构建cpu容器
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
# 确保这是你正在使用的分支名称
|
||||
- main
|
||||
|
||||
paths:
|
||||
- 'cpu-dockerfile' # 监测指定的 Dockerfile 文件路径
|
||||
# push:
|
||||
# branches:
|
||||
# # 确保这是你正在使用的分支名称
|
||||
# - main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
|
||||
@ -2,9 +2,12 @@ name: 构建gpu容器
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
# 确保这是你正在使用的分支名称
|
||||
- main
|
||||
paths:
|
||||
- 'gpu-dockerfile' # 监测指定的 Dockerfile 文件路径
|
||||
# push:
|
||||
# branches:
|
||||
# # 确保这是你正在使用的分支名称
|
||||
# - main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user