Merge branch 'main' of https://github.com/hyh1750522171/qubic-docker
This commit is contained in:
commit
4f684ff210
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
|
||||
|
||||
@ -29,7 +29,7 @@ docker run -itd --name qubic-cpu --restart=always \
|
||||
docker run -itd --name qubic-gpu --gpus all --restart=always \
|
||||
-e name=矿机名称 \
|
||||
-e token="钱包地址" \
|
||||
itgpt/qubic-gpu:latest
|
||||
itgpt/qubic-gpu:v1.9.7
|
||||
```
|
||||
|
||||
## 卸载挖矿
|
||||
|
||||
@ -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