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
5839325f
authored
Apr 06, 2025
by
Archer
Committed by
GitHub
Apr 06, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test (#4456)
* test * update action * remove test
parent
73c997f7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
18 deletions
+16
-18
.github/workflows/docs-deploy-kubeconfig.yml
+1
-7
.github/workflows/docs-preview.yml
+1
-1
.github/workflows/fastgpt-build-image-personal.yml
+1
-1
.github/workflows/fastgpt-build-image.yml
+3
-3
.github/workflows/fastgpt-preview-image.yml
+10
-6
No files found.
.github/workflows/docs-deploy-kubeconfig.yml
View file @
5839325f
...
@@ -34,7 +34,6 @@ jobs:
...
@@ -34,7 +34,6 @@ jobs:
with
:
with
:
# list of Docker images to use as base name for tags
# list of Docker images to use as base name for tags
images
:
|
images
:
|
${{ secrets.DOCKER_HUB_NAME }}/fastgpt-docs
ghcr.io/${{ github.repository_owner }}/fastgpt-docs
ghcr.io/${{ github.repository_owner }}/fastgpt-docs
registry.cn-hangzhou.aliyuncs.com/${{ secrets.ALI_HUB_USERNAME }}/fastgpt-docs
registry.cn-hangzhou.aliyuncs.com/${{ secrets.ALI_HUB_USERNAME }}/fastgpt-docs
tags
:
|
tags
:
|
...
@@ -47,12 +46,6 @@ jobs:
...
@@ -47,12 +46,6 @@ jobs:
-
name
:
Set up Docker Buildx
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
uses
:
docker/setup-buildx-action@v3
-
name
:
Login to DockerHub
uses
:
docker/login-action@v3
with
:
username
:
${{ secrets.DOCKER_HUB_NAME }}
password
:
${{ secrets.DOCKER_HUB_PASSWORD }}
-
name
:
Login to ghcr.io
-
name
:
Login to ghcr.io
uses
:
docker/login-action@v3
uses
:
docker/login-action@v3
with
:
with
:
...
@@ -77,6 +70,7 @@ jobs:
...
@@ -77,6 +70,7 @@ jobs:
labels
:
${{ steps.meta.outputs.labels }}
labels
:
${{ steps.meta.outputs.labels }}
outputs
:
outputs
:
tags
:
${{ steps.datetime.outputs.datetime }}
tags
:
${{ steps.datetime.outputs.datetime }}
update-docs-image
:
update-docs-image
:
needs
:
build-fastgpt-docs-images
needs
:
build-fastgpt-docs-images
runs-on
:
ubuntu-20.04
runs-on
:
ubuntu-20.04
...
...
.github/workflows/docs-preview.yml
View file @
5839325f
...
@@ -89,5 +89,5 @@ jobs:
...
@@ -89,5 +89,5 @@ jobs:
issue_number: context.issue.number,
issue_number: context.issue.number,
owner: context.repo.owner,
owner: context.repo.owner,
repo: context.repo.repo,
repo: context.repo.repo,
body: '[👀 Visit
Preview
](${{ needs.deploy-preview.outputs.url }})'
body: '[👀 Visit
preview document
](${{ needs.deploy-preview.outputs.url }})'
})
})
.github/workflows/fastgpt-build-image-personal.yml
View file @
5839325f
...
@@ -37,7 +37,7 @@ jobs:
...
@@ -37,7 +37,7 @@ jobs:
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secret.GITHUB_TOKEN }}
password
:
${{ secret
s
.GITHUB_TOKEN }}
-
name
:
Set DOCKER_REPO_TAGGED based on branch or tag
-
name
:
Set DOCKER_REPO_TAGGED based on branch or tag
run
:
|
run
:
|
echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/fastgpt:latest" >> $GITHUB_ENV
echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/fastgpt:latest" >> $GITHUB_ENV
...
...
.github/workflows/fastgpt-build-image.yml
View file @
5839325f
...
@@ -44,7 +44,7 @@ jobs:
...
@@ -44,7 +44,7 @@ jobs:
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secret.GITHUB_TOKEN }}
password
:
${{ secret
s
.GITHUB_TOKEN }}
-
name
:
Login to Ali Hub
-
name
:
Login to Ali Hub
uses
:
docker/login-action@v2
uses
:
docker/login-action@v2
with
:
with
:
...
@@ -131,7 +131,7 @@ jobs:
...
@@ -131,7 +131,7 @@ jobs:
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secret.GITHUB_TOKEN }}
password
:
${{ secret
s
.GITHUB_TOKEN }}
-
name
:
Login to Ali Hub
-
name
:
Login to Ali Hub
uses
:
docker/login-action@v2
uses
:
docker/login-action@v2
with
:
with
:
...
@@ -219,7 +219,7 @@ jobs:
...
@@ -219,7 +219,7 @@ jobs:
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secret.GITHUB_TOKEN }}
password
:
${{ secret
s
.GITHUB_TOKEN }}
-
name
:
Login to Ali Hub
-
name
:
Login to Ali Hub
uses
:
docker/login-action@v2
uses
:
docker/login-action@v2
with
:
with
:
...
...
.github/workflows/fastgpt-preview-image.yml
View file @
5839325f
name
:
Preview FastGPT images
name
:
Preview FastGPT images
on
:
on
:
pull_request
:
pull_request
_target
:
workflow_dispatch
:
workflow_dispatch
:
jobs
:
jobs
:
preview-fastgpt-images
:
preview-fastgpt-images
:
permissions
:
permissions
:
packages
:
write
contents
:
read
contents
:
read
packages
:
write
attestations
:
write
attestations
:
write
id-token
:
write
id-token
:
write
pull-requests
:
write
runs-on
:
ubuntu-20.04
runs-on
:
ubuntu-20.04
steps
:
steps
:
-
name
:
Checkout
-
name
:
Checkout
uses
:
actions/checkout@v3
uses
:
actions/checkout@v3
with
:
with
:
ref
:
${{ github.event.pull_request.head.ref }}
ref
:
${{ github.event.pull_request.head.ref }}
repository
:
${{ github.event.pull_request.head.repo.full_name }}
submodules
:
recursive
# Fetch submodules
fetch-depth
:
0
# Fetch all history for .GitInfo and .Lastmod
fetch-depth
:
0
# Fetch all history for .GitInfo and .Lastmod
-
name
:
Set up Docker Buildx
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v2
uses
:
docker/setup-buildx-action@v2
with
:
with
:
...
@@ -30,15 +31,18 @@ jobs:
...
@@ -30,15 +31,18 @@ jobs:
key
:
${{ runner.os }}-buildx-${{ github.sha }}
key
:
${{ runner.os }}-buildx-${{ github.sha }}
restore-keys
:
|
restore-keys
:
|
${{ runner.os }}-buildx-
${{ runner.os }}-buildx-
-
name
:
Login to GitHub Container Registry
-
name
:
Login to GitHub Container Registry
uses
:
docker/login-action@v2
uses
:
docker/login-action@v2
with
:
with
:
registry
:
ghcr.io
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
username
:
${{ github.repository_owner }}
password
:
${{ secrets.GH_PAT }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Set DOCKER_REPO_TAGGED based on branch or tag
-
name
:
Set DOCKER_REPO_TAGGED based on branch or tag
run
:
|
run
:
|
echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/fastgpt-pr:${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/fastgpt-pr:${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
-
name
:
Build image for PR
-
name
:
Build image for PR
env
:
env
:
DOCKER_REPO_TAGGED
:
${{ env.DOCKER_REPO_TAGGED }}
DOCKER_REPO_TAGGED
:
${{ env.DOCKER_REPO_TAGGED }}
...
@@ -61,5 +65,5 @@ jobs:
...
@@ -61,5 +65,5 @@ jobs:
issue_number: context.issue.number,
issue_number: context.issue.number,
owner: context.repo.owner,
owner: context.repo.owner,
repo: context.repo.repo,
repo: context.repo.repo,
body: 'Preview Image:
${{ env.DOCKER_REPO_TAGGED }}
'
body: 'Preview Image:
`${{ env.DOCKER_REPO_TAGGED }}`
'
})
})
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