diff --git a/.github/workflows/admin-image.yml b/.github/workflows/admin-image.yml index 51216d646..dec5eb6d4 100644 --- a/.github/workflows/admin-image.yml +++ b/.github/workflows/admin-image.yml @@ -2,12 +2,14 @@ name: Build fastgpt-admin images and copy image to docker hub on: workflow_dispatch: push: + paths: + - 'admin/**' branches: - 'main' tags: - 'v*.*.*' jobs: - build-images: + build-admin-images: runs-on: ubuntu-20.04 steps: - name: Checkout @@ -52,7 +54,7 @@ jobs: -f Dockerfile \ . push-to-docker-hub: - needs: build-images + needs: build-admin-images runs-on: ubuntu-20.04 steps: - name: Checkout code diff --git a/.github/workflows/fastgpt-image.yml b/.github/workflows/fastgpt-image.yml index ed461e104..fe6393751 100644 --- a/.github/workflows/fastgpt-image.yml +++ b/.github/workflows/fastgpt-image.yml @@ -2,12 +2,14 @@ name: Build fastgpt images and copy image to docker hub on: workflow_dispatch: push: + paths: + - 'client/**' branches: - 'main' tags: - 'v*.*.*' jobs: - build-images: + build-fastgpt-images: runs-on: ubuntu-20.04 steps: - name: Checkout @@ -52,7 +54,7 @@ jobs: -f Dockerfile \ . push-to-docker-hub: - needs: build-images + needs: build-fastgpt-images runs-on: ubuntu-20.04 steps: - name: Checkout code