Skip to content

Commit dcaaf9d

Browse files
committed
增加前端流水线并调整目录结构
1 parent 478b0a1 commit dcaaf9d

File tree

24 files changed

+59
-32
lines changed

24 files changed

+59
-32
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ on:
55
branches: [ "develop_930" ]
66
paths:
77
- 'backend/**'
8-
- 'build/backend/**'
9-
- '.github/workflows/**'
8+
- 'scripts/images/backend/**'
9+
- '.github/workflows/docker-image-backend.yml'
1010
pull_request:
1111
branches: [ "develop_930" ]
1212
paths:
1313
- 'backend/**'
14-
- 'build/backend/**'
15-
- '.github/workflows/**'
14+
- 'scripts/images/backend/**'
15+
- '.github/workflows/docker-image-backend.yml'
1616
workflow_dispatch:
1717

1818
jobs:
@@ -23,5 +23,5 @@ jobs:
2323

2424
steps:
2525
- uses: actions/checkout@v4
26-
- name: Build the Docker image
26+
- name: Build the Backend Docker image
2727
run: make build-backend
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Frontend Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "develop_930" ]
6+
paths:
7+
- 'frontend/**'
8+
- 'scripts/images/frontend/**'
9+
- '.github/workflows/docker-image-frontend.yml'
10+
pull_request:
11+
branches: [ "develop_930" ]
12+
paths:
13+
- 'frontend/**'
14+
- 'scripts/images/frontend/**'
15+
- '.github/workflows/docker-image-frontend.yml'
16+
workflow_dispatch:
17+
18+
jobs:
19+
20+
build:
21+
22+
runs-on: ubuntu-latest
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
- name: Build the Frontend Docker image
27+
run: make build-frontend

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,27 @@ uninstall-%:
4545
# build
4646
.PHONY: mineru-docker-build
4747
mineru-docker-build:
48-
sh scripts/image/mineru/build.sh
48+
sh scripts/images/mineru/build.sh
4949

5050
.PHONY: datax-docker-build
5151
datax-docker-build:
52-
sh scripts/image/datax/build.sh
52+
sh scripts/images/datax/build.sh
5353

5454
.PHONY: data-juicer-docker-build
5555
data-juicer-docker-build:
56-
sh scripts/image/data-juicer/build.sh
56+
sh scripts/images/data-juicer/build.sh
5757

5858
.PHONY: unstructured-docker-build
5959
unstructured-docker-build:
60-
sh scripts/image/unstructured/build.sh
60+
sh scripts/images/unstructured/build.sh
6161

6262
.PHONY: backend-docker-build
6363
backend-docker-build:
64-
sh scripts/image/backend/build.sh
64+
sh scripts/images/backend/build.sh
6565

6666
.PHONY: frontend-docker-build
6767
frontend-docker-build:
68-
sh scripts/image/frontend/build.sh
68+
sh scripts/images/frontend/build.sh
6969

7070
.PHONY: mineru-k8s-install
7171
mineru-k8s-install:

scripts/image/backend/build.sh

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

scripts/image/data-juicer/build.sh

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

scripts/image/datax/build.sh

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

scripts/image/frontend/build.sh

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

scripts/image/mineru/build.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
FROM maven:3-amazoncorretto-21-debian AS builder
22

33
COPY backend/ /opt/backend
4-
COPY scripts/image/backend/settings.xml /opt/backend
4+
COPY scripts/images/backend/settings.xml /opt/backend
55

66
RUN cd /opt/backend && \
77
mvn -U clean package -s settings.xml -Dmaven.test.skip=true

scripts/images/backend/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
3+
docker build -t backend:latest -f scripts/images/backend/Dockerfile .
4+

0 commit comments

Comments
 (0)