Commit 93fc9ee6 by archer

perf: ci

parent a4e2c651
...@@ -2,12 +2,14 @@ name: Build fastgpt-admin images and copy image to docker hub ...@@ -2,12 +2,14 @@ name: Build fastgpt-admin images and copy image to docker hub
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
paths:
- 'admin/**'
branches: branches:
- 'main' - 'main'
tags: tags:
- 'v*.*.*' - 'v*.*.*'
jobs: jobs:
build-images: build-admin-images:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout - name: Checkout
...@@ -52,7 +54,7 @@ jobs: ...@@ -52,7 +54,7 @@ jobs:
-f Dockerfile \ -f Dockerfile \
. .
push-to-docker-hub: push-to-docker-hub:
needs: build-images needs: build-admin-images
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout code - name: Checkout code
......
...@@ -2,12 +2,14 @@ name: Build fastgpt images and copy image to docker hub ...@@ -2,12 +2,14 @@ name: Build fastgpt images and copy image to docker hub
on: on:
workflow_dispatch: workflow_dispatch:
push: push:
paths:
- 'client/**'
branches: branches:
- 'main' - 'main'
tags: tags:
- 'v*.*.*' - 'v*.*.*'
jobs: jobs:
build-images: build-fastgpt-images:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout - name: Checkout
...@@ -52,7 +54,7 @@ jobs: ...@@ -52,7 +54,7 @@ jobs:
-f Dockerfile \ -f Dockerfile \
. .
push-to-docker-hub: push-to-docker-hub:
needs: build-images needs: build-fastgpt-images
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Checkout code - name: Checkout code
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment