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
245d6e0d
authored
Nov 12, 2025
by
Archer
Committed by
GitHub
Nov 12, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: action (#5904)
parent
3a5318c0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
17 deletions
+21
-17
.github/workflows/marketplace-image.yml
+21
-17
No files found.
.github/workflows/marketplace-image.yml
View file @
245d6e0d
...
...
@@ -60,8 +60,8 @@ jobs:
platforms
:
linux/${{ matrix.archs.arch }}
labels
:
|
org.opencontainers.image.source=https://github.com/${{ github.repository }}
org.opencontainers.image.description=marketplace image
outputs
:
type=image,"name=ghcr.io/${{ github.repository_owner }}/
marketplace,${{ secrets.ALI_IMAGE_NAME }}/
marketplace",push-by-digest=true,push=true
org.opencontainers.image.description=
fastgpt-
marketplace image
outputs
:
type=image,"name=ghcr.io/${{ github.repository_owner }}/
fastgpt-marketplace,${{ secrets.ALI_IMAGE_NAME }}/fastgpt-
marketplace",push-by-digest=true,push=true
cache-from
:
type=local,src=/tmp/.buildx-cache
cache-to
:
type=local,dest=/tmp/.buildx-cache
...
...
@@ -121,26 +121,30 @@ jobs:
-
name
:
Set image name and tag
run
:
|
echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
echo "Ali_Tag=${{ secrets.ALI_IMAGE_NAME }}/marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/
fastgpt-
marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
echo "Ali_Tag=${{ secrets.ALI_IMAGE_NAME }}/
fastgpt-
marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
-
name
:
Create manifest list and push
working-directory
:
${{ runner.temp }}/digests
run
:
|
echo "Pushing image with tag: ${{ env.RANDOM_TAG }}"
TAGS="$(echo -e "${Git_Tag}\n${Ali_Tag}")"
for TAG in $TAGS; do
echo "Creating and pushing manifest for: $TAG"
docker buildx imagetools create -t $TAG \
$(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
done
echo "Available digests:"
ls -la
echo ""
# Create manifest for GitHub Container Registry
echo "Creating manifest for GitHub: ${Git_Tag}"
docker buildx imagetools create -t ${Git_Tag} \
$(printf 'ghcr.io/${{ github.repository_owner }}/fastgpt-marketplace@sha256:%s ' *)
echo "✅ GitHub manifest created"
sleep 5
# Create manifest for Ali Cloud
echo "Creating manifest for Ali Cloud: ${Ali_Tag}"
docker buildx imagetools create -t ${Ali_Tag} \
$(printf '${{ secrets.ALI_IMAGE_NAME }}/fastgpt-marketplace@sha256:%s ' *)
echo "✅ Ali Cloud manifest created"
echo ""
echo "✅ All images pushed successfully:"
echo " - ${{ env.Git_Tag }}"
...
...
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