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
5e64f6c9
authored
May 14, 2026
by
DigHuang
Committed by
GitHub
May 14, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: move sandbox proxy to release workflow (#6934)
parent
c3d72992
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
161 additions
and
8 deletions
+161
-8
.github/workflows/build-sandbox-proxy.yml
+159
-0
.github/workflows/preview-fastgpt-build.yml
+1
-5
.github/workflows/preview-fastgpt-push.yml
+1
-3
No files found.
.github/workflows/build-sandbox-proxy.yml
0 → 100644
View file @
5e64f6c9
name
:
Build fastgpt-sandbox-proxy images
on
:
workflow_dispatch
:
push
:
paths
:
-
'
.github/workflows/build-sandbox-proxy.yml'
-
'
projects/sandbox-proxy/**'
tags
:
-
'
v*'
jobs
:
detect_sandbox_proxy
:
runs-on
:
ubuntu-24.04
outputs
:
has_dockerfile
:
${{ steps.detect.outputs.has_dockerfile }}
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v4
with
:
fetch-depth
:
1
-
name
:
Detect sandbox-proxy Dockerfile
id
:
detect
run
:
|
if [[ -f projects/sandbox-proxy/Dockerfile ]]; then
echo "has_dockerfile=true" >> "$GITHUB_OUTPUT"
else
echo "has_dockerfile=false" >> "$GITHUB_OUTPUT"
fi
build-fastgpt-sandbox-proxy-images
:
permissions
:
packages
:
write
contents
:
read
attestations
:
write
id-token
:
write
needs
:
detect_sandbox_proxy
if
:
${{ needs.detect_sandbox_proxy.outputs.has_dockerfile == 'true' }}
strategy
:
matrix
:
include
:
-
arch
:
amd64
-
arch
:
arm64
runs-on
:
ubuntu-24.04-arm
runs-on
:
${{ matrix.runs-on || 'ubuntu-24.04' }}
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v4
with
:
fetch-depth
:
0
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
with
:
driver-opts
:
network=host
-
name
:
Cache Docker layers
uses
:
actions/cache@v4
with
:
path
:
/tmp/.buildx-cache
key
:
${{ runner.os }}-sandbox-proxy-buildx-${{ github.sha }}
restore-keys
:
|
${{ runner.os }}-sandbox-proxy-buildx-
-
name
:
Login to GitHub Container Registry
uses
:
docker/login-action@v3
with
:
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Build for ${{ matrix.arch }}
id
:
build
uses
:
docker/build-push-action@v6
with
:
context
:
.
file
:
projects/sandbox-proxy/Dockerfile
platforms
:
linux/${{ matrix.arch }}
labels
:
|
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.description=fastgpt-sandbox-proxy image
outputs
:
type=image,"name=ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox-proxy",push-by-digest=true,push=true
cache-from
:
type=local,src=/tmp/.buildx-cache
cache-to
:
type=local,dest=/tmp/.buildx-cache
-
name
:
Export digest
run
:
|
mkdir -p ${{ runner.temp }}/digests
digest="${{ steps.build.outputs.digest }}"
touch "${{ runner.temp }}/digests/${digest#sha256:}"
-
name
:
Upload digest
uses
:
actions/upload-artifact@v4
with
:
name
:
digests-fastgpt-sandbox-proxy-${{ github.sha }}-${{ matrix.arch }}
path
:
${{ runner.temp }}/digests/*
if-no-files-found
:
error
retention-days
:
1
release-fastgpt-sandbox-proxy-images
:
permissions
:
packages
:
write
contents
:
read
attestations
:
write
id-token
:
write
needs
:
-
detect_sandbox_proxy
-
build-fastgpt-sandbox-proxy-images
if
:
${{ needs.detect_sandbox_proxy.outputs.has_dockerfile == 'true' }}
runs-on
:
ubuntu-24.04
steps
:
-
name
:
Login to GitHub Container Registry
uses
:
docker/login-action@v3
with
:
registry
:
ghcr.io
username
:
${{ github.repository_owner }}
password
:
${{ secrets.GITHUB_TOKEN }}
-
name
:
Login to Ali Hub
uses
:
docker/login-action@v3
with
:
registry
:
registry.cn-hangzhou.aliyuncs.com
username
:
${{ secrets.FASTGPT_ALI_IMAGE_USER }}
password
:
${{ secrets.FASTGPT_ALI_IMAGE_PSW }}
-
name
:
Download digests
uses
:
actions/download-artifact@v4
with
:
path
:
${{ runner.temp }}/digests
pattern
:
digests-fastgpt-sandbox-proxy-${{ github.sha }}-*
merge-multiple
:
true
-
name
:
Set up Docker Buildx
uses
:
docker/setup-buildx-action@v3
-
name
:
Set image name and tag
run
:
|
if [[ "${{ github.ref_name }}" == "main" ]]; then
echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox-proxy:latest" >> "$GITHUB_ENV"
echo "Git_Latest=ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox-proxy:latest" >> "$GITHUB_ENV"
echo "Ali_Tag=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-sandbox-proxy:latest" >> "$GITHUB_ENV"
echo "Ali_Latest=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-sandbox-proxy:latest" >> "$GITHUB_ENV"
else
echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox-proxy:${{ github.ref_name }}" >> "$GITHUB_ENV"
echo "Git_Latest=ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox-proxy:latest" >> "$GITHUB_ENV"
echo "Ali_Tag=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-sandbox-proxy:${{ github.ref_name }}" >> "$GITHUB_ENV"
echo "Ali_Latest=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-sandbox-proxy:latest" >> "$GITHUB_ENV"
fi
-
name
:
Create manifest list and push
working-directory
:
${{ runner.temp }}/digests
run
:
|
TAGS="$(echo -e "${Git_Tag}\n${Git_Latest}\n${Ali_Tag}\n${Ali_Latest}")"
for TAG in $TAGS; do
docker buildx imagetools create -t "$TAG" \
$(printf 'ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox-proxy@sha256:%s ' *)
sleep 5
done
.github/workflows/preview-fastgpt-build.yml
View file @
5e64f6c9
...
...
@@ -18,7 +18,7 @@ jobs:
runs-on
:
ubuntu-24.04
strategy
:
matrix
:
image
:
[
fastgpt
,
code-sandbox
,
mcp_server
,
sandbox-proxy
]
image
:
[
fastgpt
,
code-sandbox
,
mcp_server
]
fail-fast
:
false
steps
:
...
...
@@ -43,10 +43,6 @@ jobs:
echo "DOCKERFILE=projects/mcp_server/Dockerfile" >> $GITHUB_OUTPUT
echo "DESCRIPTION=fastgpt-mcp_server-pr image" >> $GITHUB_OUTPUT
echo "IMAGE_NAME=fastgpt-mcp-server" >> $GITHUB_OUTPUT
elif [[ "${{ matrix.image }}" == "sandbox-proxy" ]]; then
echo "DOCKERFILE=projects/sandbox-proxy/Dockerfile" >> $GITHUB_OUTPUT
echo "DESCRIPTION=fastgpt-sandbox-proxy-pr image" >> $GITHUB_OUTPUT
echo "IMAGE_NAME=fastgpt-sandbox-proxy" >> $GITHUB_OUTPUT
fi
-
name
:
Set up Docker Buildx
...
...
.github/workflows/preview-fastgpt-push.yml
View file @
5e64f6c9
...
...
@@ -26,7 +26,7 @@ jobs:
if
:
${{ github.event.workflow_run.conclusion == 'success' }}
strategy
:
matrix
:
image
:
[
fastgpt
,
code-sandbox
,
mcp_server
,
sandbox-proxy
]
image
:
[
fastgpt
,
code-sandbox
,
mcp_server
]
fail-fast
:
false
steps
:
...
...
@@ -39,8 +39,6 @@ jobs:
echo "IMAGE_NAME=fastgpt-code-sandbox" >> $GITHUB_OUTPUT
elif [[ "${{ matrix.image }}" == "mcp_server" ]]; then
echo "IMAGE_NAME=fastgpt-mcp-server" >> $GITHUB_OUTPUT
elif [[ "${{ matrix.image }}" == "sandbox-proxy" ]]; then
echo "IMAGE_NAME=fastgpt-sandbox-proxy" >> $GITHUB_OUTPUT
fi
-
name
:
Download build artifact
...
...
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