Merge branch 'main' of https://github.com/hyh1750522171/qubic-docker
This commit is contained in:
commit
8b4bfc489b
33
.github/workflows/build-cpu-docker-worker.yml
vendored
Normal file
33
.github/workflows/build-cpu-docker-worker.yml
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
name: 构建cpu容器
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
# 确保这是你正在使用的分支名称
|
||||
- main
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
publish-docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: 拉源码
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: 登陆到DockerHub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: 构建和推送qubic-CPU镜像
|
||||
uses: docker/build-push-action@v4.1.1
|
||||
with:
|
||||
context: .
|
||||
file: ./gpu-dockerfile
|
||||
push: true
|
||||
tags: ${{ vars.DOCKERHUB_USERNAME }}/qubic-cpu:latest
|
||||
@ -1,4 +1,4 @@
|
||||
name: 构建容器
|
||||
name: 构建gpu容器
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -31,11 +31,3 @@ jobs:
|
||||
file: ./gpu-dockerfile
|
||||
push: true
|
||||
tags: ${{ vars.DOCKERHUB_USERNAME }}/qubic-cpu:latest
|
||||
|
||||
- name: 构建和推送qubic-GPU镜像
|
||||
uses: docker/build-push-action@v4.1.1
|
||||
with:
|
||||
context: .
|
||||
file: ./cpu-dockerfile
|
||||
push: true
|
||||
tags: ${{ vars.DOCKERHUB_USERNAME }}/qubic-gpu:latest
|
||||
Loading…
Reference in New Issue
Block a user