Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
cd7214ba
authored
Oct 09, 2023
by
Carson Yang
Committed by
GitHub
Oct 09, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Docs: update workflow for building docs image (#384)
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
parent
6a84e73a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
.github/workflows/docs-image.yml
+17
-4
No files found.
.github/workflows/docs-image.yml
View file @
cd7214ba
...
...
@@ -9,7 +9,7 @@ on:
tags
:
-
'
v*.*.*'
jobs
:
build-fastgpt-images
:
build-fastgpt-
docs-
images
:
runs-on
:
ubuntu-20.04
steps
:
-
name
:
Checkout
...
...
@@ -59,7 +59,7 @@ jobs:
-f docSite/Dockerfile \
.
push-to-docker-hub
:
needs
:
build-fastgpt-images
needs
:
build-fastgpt-
docs-
images
runs-on
:
ubuntu-20.04
if
:
github.repository == 'labring/FastGPT'
steps
:
...
...
@@ -82,4 +82,17 @@ jobs:
-
name
:
Tag image with Docker Hub repository name and version tag
run
:
docker tag ghcr.io/${{ github.repository_owner }}/fastgpt-docs:${{env.IMAGE_TAG}} ${{ secrets.DOCKER_IMAGE_NAME }}:${{env.IMAGE_TAG}}
-
name
:
Push image to Docker Hub
run
:
docker push ${{ secrets.DOCKER_IMAGE_NAME }}:${{env.IMAGE_TAG}}
\ No newline at end of file
run
:
docker push ${{ secrets.DOCKER_IMAGE_NAME }}:${{env.IMAGE_TAG}}
update-docs-image
:
needs
:
build-fastgpt-docs-images
runs-on
:
ubuntu-20.04
if
:
github.repository == 'labring/FastGPT'
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v3
-
uses
:
actions-hub/kubectl@master
env
:
KUBE_CONFIG
:
${{ secrets.KUBE_CONFIG }}
with
:
args
:
rollout restart deployment fastgpt-docs
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment