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
3a5318c0
authored
Nov 12, 2025
by
Archer
Committed by
GitHub
Nov 12, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: action (#5903)
parent
8eb6f37b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
9 deletions
+19
-9
.github/workflows/marketplace-image.yml
+16
-8
projects/app/package.json
+1
-1
projects/marketplace/.env.template
+2
-0
No files found.
.github/workflows/marketplace-image.yml
View file @
3a5318c0
...
@@ -67,15 +67,15 @@ jobs:
...
@@ -67,15 +67,15 @@ jobs:
-
name
:
Export digest
-
name
:
Export digest
run
:
|
run
:
|
mkdir -p ${{ runner.temp }}/digests
/marketplace
mkdir -p ${{ runner.temp }}/digests
digest="${{ steps.build.outputs.digest }}"
digest="${{ steps.build.outputs.digest }}"
touch "${{ runner.temp }}/digests/
marketplace/
${digest#sha256:}"
touch "${{ runner.temp }}/digests/${digest#sha256:}"
-
name
:
Upload digest
-
name
:
Upload digest
uses
:
actions/upload-artifact@v4
uses
:
actions/upload-artifact@v4
with
:
with
:
name
:
digests-marketplace-${{ github.sha }}-${{ matrix.archs.arch }}
name
:
digests-marketplace-${{ github.sha }}-${{ matrix.archs.arch }}
path
:
${{ runner.temp }}/digests/
marketplace/
*
path
:
${{ runner.temp }}/digests/*
if-no-files-found
:
error
if-no-files-found
:
error
retention-days
:
1
retention-days
:
1
...
@@ -121,8 +121,8 @@ jobs:
...
@@ -121,8 +121,8 @@ jobs:
-
name
:
Set image name and tag
-
name
:
Set image name and tag
run
:
|
run
:
|
echo "Git_
IMAGE
=ghcr.io/${{ github.repository_owner }}/marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
echo "Git_
Tag
=ghcr.io/${{ github.repository_owner }}/marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
echo "Ali_
IMAGE
=${{ secrets.ALI_IMAGE_NAME }}/marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
echo "Ali_
Tag
=${{ secrets.ALI_IMAGE_NAME }}/marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
-
name
:
Create manifest list and push
-
name
:
Create manifest list and push
working-directory
:
${{ runner.temp }}/digests
working-directory
:
${{ runner.temp }}/digests
...
@@ -130,10 +130,18 @@ jobs:
...
@@ -130,10 +130,18 @@ jobs:
echo "Pushing image with tag: ${{ env.RANDOM_TAG }}"
echo "Pushing image with tag: ${{ env.RANDOM_TAG }}"
TAGS="$(echo -e "${Git_Tag}\n${Ali_Tag}")"
TAGS="$(echo -e "${Git_Tag}\n${Ali_Tag}")"
for TAG in $TAGS; do
for TAG in $TAGS; do
echo "Creating and pushing manifest for: $TAG"
docker buildx imagetools create -t $TAG \
docker buildx imagetools create -t $TAG \
$(printf 'ghcr.io/${{ github.repository_owner }}/marketplace@sha256:%s ' *)
$(printf 'ghcr.io/${{ github.repository_owner }}/marketplace@sha256:%s ' *)
if [ $? -eq 0 ]; then
echo "✅ Successfully pushed: $TAG"
else
echo "❌ Failed to push: $TAG"
exit 1
fi
sleep 5
sleep 5
done
done
echo "✅ Successfully pushed images:"
echo ""
echo " - ${{ env.Git_IMAGE }}"
echo "✅ All images pushed successfully:"
echo " - ${{ env.Ali_IMAGE }}"
echo " - ${{ env.Git_Tag }}"
echo " - ${{ env.Ali_Tag }}"
projects/app/package.json
View file @
3a5318c0
{
{
"name"
:
"
app
"
,
"name"
:
"
app
"
,
"version"
:
"4.14.
0
"
,
"version"
:
"4.14.
1
"
,
"private"
:
false
,
"private"
:
false
,
"scripts"
:
{
"scripts"
:
{
"dev"
:
"npm run build:workers && next dev"
,
"dev"
:
"npm run build:workers && next dev"
,
...
...
projects/marketplace/.env.template
View file @
3a5318c0
S3_PREFIX=http://localhost:9000/fastgpt-plugins
S3_PREFIX=http://localhost:9000/fastgpt-plugins
AUTH_TOKEN=xxxx
\ 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