更改自动化构建

This commit is contained in:
hyh 2024-05-22 12:23:42 +00:00
parent 24f157c051
commit 844c80dd68
3 changed files with 14 additions and 8 deletions

View File

@ -2,10 +2,13 @@ name: 构建cpu容器
on:
push:
branches:
# 确保这是你正在使用的分支名称
- main
paths:
- 'cpu-dockerfile' # 监测指定的 Dockerfile 文件路径
# push:
# branches:
# # 确保这是你正在使用的分支名称
# - main
permissions:
contents: write

View File

@ -2,9 +2,12 @@ name: 构建gpu容器
on:
push:
branches:
# 确保这是你正在使用的分支名称
- main
paths:
- 'gpu-dockerfile' # 监测指定的 Dockerfile 文件路径
# push:
# branches:
# # 确保这是你正在使用的分支名称
# - main
permissions:
contents: write

View File

@ -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"