File tree Expand file tree Collapse file tree 2 files changed +54
-22
lines changed
Expand file tree Collapse file tree 2 files changed +54
-22
lines changed Original file line number Diff line number Diff line change 1+ name : Docker Image CI Pull
2+
3+ on :
4+ workflow_dispatch : # 允许手动触发工作流
5+
6+ jobs :
7+ build :
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v2
13+
14+ - name : Set up QEMU
15+ uses : docker/setup-qemu-action@v1
16+
17+ - name : Set up Buildx
18+ uses : docker/setup-buildx-action@v1
19+
20+ - name : Build the Docker image
21+ run : |
22+ # 登录阿里云镜像仓库
23+ docker login --username=${{ secrets.ALIYUN_USERNAME }} --password=${{ secrets.ALIYUN_PASSWORD }} registry.cn-hangzhou.aliyuncs.com
24+ # 使用Dockerfile构建镜像
25+ docker pull --platform linux/amd64 ghcr.io/codefuse-ai/runtime:0.1.0
26+ docker tag linux/amd64 ghcr.io/codefuse-ai/runtime:0.1.0 registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-amd
27+ # 推送镜像到镜像仓库
28+ docker pull --platform linux/arm64 ghcr.io/codefuse-ai/runtime:0.1.0
29+ docker tag linux/amd64 ghcr.io/codefuse-ai/runtime:0.1.0 registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-arm
Original file line number Diff line number Diff line change 55
66jobs :
77 build :
8- runs-on : ubuntu-latest
8+ runs-on : ubuntu-20.04 # 或者指定其他版本
99
1010 steps :
1111 - name : Checkout code
@@ -30,28 +30,31 @@ jobs:
3030 ls -l
3131 ls -l ./runtime
3232
33- - name : Build and push
34- uses : docker/build-push-action@v2
35- with :
36- context : ./runtime
37- file : ./runtime/Dockerfile.no-package
38- push : true
39- tags : ghcr.io/lightislost/runtime:0.1.0
40- platforms : |
41- linux/amd64
42- linux/arm64
33+ # - name: Build and push
34+ # uses: docker/build-push-action@v2
35+ # with:
36+ # context: ./runtime
37+ # file: ./runtime/Dockerfile.no-package
38+ # push: true
39+ # tags: ghcr.io/lightislost/runtime:0.1.0
40+ # platforms: |
41+ # linux/amd64
42+ # linux/arm64
4343
44- - name : Build and push
45- uses : docker/build-push-action@v2
46- with :
47- context : .
48- file : ./Dockerfile_frontend
49- push : true
50- tags : ghcr.io/lightislost/ekgfrontend:0.1.0
51- platforms : |
52- linux/amd64
53- linux/arm64
54-
44+ # - name: Build and push
45+ # uses: docker/build-push-action@v2
46+ # with:
47+ # context: .
48+ # file: ./Dockerfile_frontend
49+ # push: true
50+ # tags: ghcr.io/lightislost/ekgfrontend:0.1.0
51+ # platforms: |
52+ # linux/amd64
53+ # linux/arm64
54+
55+ - name : Check disk space
56+ run : df -h
57+
5558 - name : Build and push
5659 uses : docker/build-push-action@v2
5760 with :
You can’t perform that action at this time.
0 commit comments