Skip to content

Commit b8fb9f1

Browse files
committed
feat: update workflow
1 parent 3f2198d commit b8fb9f1

File tree

3 files changed

+47
-89
lines changed

3 files changed

+47
-89
lines changed

.github/workflows/docker-image.yml

Lines changed: 38 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
name: Docker Image CI
1+
name: Docker Image CI Test
2+
23
on:
34
workflow_dispatch: # 允许手动触发工作流
45

56
jobs:
67
build:
78
runs-on: ubuntu-latest
8-
strategy:
9-
matrix:
10-
architecture: [amd64, arm64]
119

1210
steps:
1311
- name: Checkout code
@@ -26,26 +24,53 @@ jobs:
2624
username: ${{ github.actor }} # 使用当前 GitHub 用户名
2725
password: ${{ secrets.CR_TOKEN }} # 使用您刚刚添加的个人访问令牌
2826

27+
- name: show local dir
28+
run: |
29+
pwd
30+
ls -l
31+
ls -l ./runtime
32+
2933
- name: Build and push
3034
uses: docker/build-push-action@v2
3135
with:
32-
context: .
33-
file: ./Dockerfile_frontend
36+
context: ./runtime
37+
file: ./runtime/Dockerfile.no-package
3438
push: true
35-
tags: ghcr.io/codefuse-ai/ekgfrontend:0.1.0
39+
tags: ghcr.io/lightislost/runtime:0.1.0
40+
platforms: |
41+
linux/amd64
42+
linux/arm64
3643
3744
- name: Build and push
3845
uses: docker/build-push-action@v2
3946
with:
4047
context: .
41-
file: ./Dockerfile
48+
file: ./Dockerfile_frontend
4249
push: true
43-
tags: ghcr.io/codefuse-ai/ekgservice:0.1.0
44-
50+
tags: ghcr.io/lightislost/ekgfrontend:0.1.0
51+
platforms: |
52+
linux/amd64
53+
linux/arm64
54+
4555
- name: Build and push
4656
uses: docker/build-push-action@v2
4757
with:
48-
context: ./runtime
49-
file: Dockerfile.no-package
58+
context: .
59+
file: ./Dockerfile_gh
5060
push: true
51-
tags: ghcr.io/codefuse-ai/runtime:0.1.0
61+
tags: ghcr.io/lightislost/ekgservice:0.1.0
62+
platforms: |
63+
linux/amd64
64+
linux/arm64
65+
66+
67+
# - name: Build and push
68+
# uses: docker/build-push-action@v2
69+
# with:
70+
# context: .
71+
# file: ./Dockerfile_frontend
72+
# push: true
73+
# tags: ghcr.io/lightislost/ekgfrontend:latest
74+
# platforms: |
75+
# linux/amd64
76+
# linux/arm64

.github/workflows/test.yaml

Lines changed: 0 additions & 76 deletions
This file was deleted.

Dockerfile_gh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM python:3.9-bookworm
2+
3+
WORKDIR /home/user
4+
5+
COPY ./requirements.txt /home/user/docker_requirements.txt
6+
7+
RUN pip install -r /home/user/docker_requirements.txt --retries 5 --timeout 120
8+
9+
CMD ["bash"]

0 commit comments

Comments
 (0)