6
6
jobs :
7
7
build :
8
8
runs-on : ubuntu-latest
9
+ strategy :
10
+ matrix :
11
+ architecture : [amd64, arm64]
12
+ os : [linux]
13
+ service : [runtime:0.1.0, ekgservice:0.1.0, ekgfrontend:0.1.0]
9
14
10
15
steps :
11
16
- name : Checkout code
21
26
run : |
22
27
# 登录阿里云镜像仓库
23
28
docker login --username=${{ secrets.ALIYUN_USERNAME }} --password=${{ secrets.ALIYUN_PASSWORD }} registry.cn-hangzhou.aliyuncs.com
29
+
24
30
# 使用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
- # 推送镜像到镜像仓库
31
+ docker pull --platform ${{ matrix.os }}/${{ matrix.architecture }} ghcr.io/codefuse-ai/runtime:0.1.0
32
+ docker tag linux/amd64 ghcr.io/codefuse-ai/runtime:0.1.0 registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-${{ matrix.architecture }}
33
+ docker push registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-${{ matrix.architecture }}
34
+
28
35
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
36
+
37
+ docker pull --platform linux/amd64 ghcr.io/codefuse-ai/ekgservice:0.1.0
38
+ docker pull --platform linux/arm64 ghcr.io/codefuse-ai/ekgservice:0.1.0
39
+
40
+ docker pull --platform linux/amd64 ghcr.io/codefuse-ai/ekgfrontend:0.1.0
41
+ docker pull --platform linux/arm64 ghcr.io/codefuse-ai/ekgfrontend:0.1.0
42
+
43
+ # 推送镜像到镜像仓库
44
+ ## runtime-amd
45
+ docker tag linux/amd64 ghcr.io/codefuse-ai/runtime:0.1.0 registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-amd
46
+ docker push registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-amd
47
+ ## runtime-arm
48
+ docker tag linux/amd64 ghcr.io/codefuse-ai/runtime:0.1.0 registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-arm
49
+ docker push registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-arm
50
+
51
+ ## runtime-amd
52
+ docker tag linux/amd64 ghcr.io/codefuse-ai/ekgservice:0.1.0 registry.cn-hangzhou.aliyuncs.com/muagent/ekgservice:0.1.0-amd
53
+ docker push registry.cn-hangzhou.aliyuncs.com/muagent/ekgservice:0.1.0-amd
54
+ ## runtime-arm
55
+ docker tag linux/amd64 ghcr.io/codefuse-ai/runtime:0.1.0 registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-arm
56
+ docker push registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-arm
57
+
58
+ ## runtime-amd
59
+ docker tag linux/amd64 ghcr.io/codefuse-ai/runtime:0.1.0 registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-amd
60
+ docker push registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-amd
61
+ ## runtime-arm
62
+ docker tag linux/amd64 ghcr.io/codefuse-ai/runtime:0.1.0 registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-arm
63
+ docker push registry.cn-hangzhou.aliyuncs.com/muagent/runtime:0.1.0-arm
0 commit comments