mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-24 13:53:50 +00:00
perf: ci
This commit is contained in:
6
.github/workflows/admin-image.yml
vendored
6
.github/workflows/admin-image.yml
vendored
@@ -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:
|
|||||||
-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
|
||||||
|
6
.github/workflows/fastgpt-image.yml
vendored
6
.github/workflows/fastgpt-image.yml
vendored
@@ -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:
|
|||||||
-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
|
||||||
|
Reference in New Issue
Block a user