Skip to content

Commit 93fc9ee

Browse files
committed
perf: ci
1 parent a4e2c65 commit 93fc9ee

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/admin-image.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ name: Build fastgpt-admin images and copy image to docker hub
22
on:
33
workflow_dispatch:
44
push:
5+
paths:
6+
- 'admin/**'
57
branches:
68
- 'main'
79
tags:
810
- 'v*.*.*'
911
jobs:
10-
build-images:
12+
build-admin-images:
1113
runs-on: ubuntu-20.04
1214
steps:
1315
- name: Checkout
@@ -52,7 +54,7 @@ jobs:
5254
-f Dockerfile \
5355
.
5456
push-to-docker-hub:
55-
needs: build-images
57+
needs: build-admin-images
5658
runs-on: ubuntu-20.04
5759
steps:
5860
- name: Checkout code

.github/workflows/fastgpt-image.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ name: Build fastgpt images and copy image to docker hub
22
on:
33
workflow_dispatch:
44
push:
5+
paths:
6+
- 'client/**'
57
branches:
68
- 'main'
79
tags:
810
- 'v*.*.*'
911
jobs:
10-
build-images:
12+
build-fastgpt-images:
1113
runs-on: ubuntu-20.04
1214
steps:
1315
- name: Checkout
@@ -52,7 +54,7 @@ jobs:
5254
-f Dockerfile \
5355
.
5456
push-to-docker-hub:
55-
needs: build-images
57+
needs: build-fastgpt-images
5658
runs-on: ubuntu-20.04
5759
steps:
5860
- name: Checkout code

0 commit comments

Comments
 (0)