Skip to content

Commit c332e92

Browse files
committed
workflow: fix matrix params
1 parent 7bb5516 commit c332e92

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/docker-image-pull.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ jobs:
1010
matrix:
1111
architecture: [amd64, arm64]
1212
os: [linux]
13-
service: [runtime:0.1.0, ekgservice:0.1.0, ekgfrontend:0.1.0]
13+
service:
14+
-name: runtime:0.1.0
15+
-name: ekgservice:0.1.0
16+
-name: ekgfrontend:0.1.0
1417

1518
steps:
1619
- name: Checkout code
@@ -28,6 +31,6 @@ jobs:
2831
docker login --username=${{ secrets.ALIYUN_USERNAME }} --password=${{ secrets.ALIYUN_PASSWORD }} registry.cn-hangzhou.aliyuncs.com
2932
3033
# 使用Dockerfile构建镜像
31-
docker pull --platform ${{ matrix.os }}/${{ matrix.architecture }} ghcr.io/codefuse-ai/${{ matrix.service }}
32-
docker tag ghcr.io/codefuse-ai/${{ matrix.service }} registry.cn-hangzhou.aliyuncs.com/muagent/${{ matrix.service }}-${{ matrix.architecture }}
33-
docker push registry.cn-hangzhou.aliyuncs.com/muagent/${{ matrix.service }}-${{ matrix.architecture }}
34+
docker pull --platform ${{ matrix.os }}/${{ matrix.architecture }} ghcr.io/codefuse-ai/${{ matrix.service.name }}
35+
docker tag ghcr.io/codefuse-ai/${{ matrix.service.name }} registry.cn-hangzhou.aliyuncs.com/muagent/${{ matrix.service.name }}-${{ matrix.architecture }}
36+
docker push registry.cn-hangzhou.aliyuncs.com/muagent/${{ matrix.service.name }}-${{ matrix.architecture }}

0 commit comments

Comments
 (0)