File tree Expand file tree Collapse file tree 3 files changed +47
-89
lines changed
Expand file tree Collapse file tree 3 files changed +47
-89
lines changed Original file line number Diff line number Diff line change 1- name : Docker Image CI
1+ name : Docker Image CI Test
2+
23on :
34 workflow_dispatch : # 允许手动触发工作流
45
56jobs :
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
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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"]
You can’t perform that action at this time.
0 commit comments