Skip to content

Commit 3a5318c

Browse files
authored
fix: action (#5903)
1 parent 8eb6f37 commit 3a5318c

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

.github/workflows/marketplace-image.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ jobs:
6767

6868
- name: Export digest
6969
run: |
70-
mkdir -p ${{ runner.temp }}/digests/marketplace
70+
mkdir -p ${{ runner.temp }}/digests
7171
digest="${{ steps.build.outputs.digest }}"
72-
touch "${{ runner.temp }}/digests/marketplace/${digest#sha256:}"
72+
touch "${{ runner.temp }}/digests/${digest#sha256:}"
7373
7474
- name: Upload digest
7575
uses: actions/upload-artifact@v4
7676
with:
7777
name: digests-marketplace-${{ github.sha }}-${{ matrix.archs.arch }}
78-
path: ${{ runner.temp }}/digests/marketplace/*
78+
path: ${{ runner.temp }}/digests/*
7979
if-no-files-found: error
8080
retention-days: 1
8181

@@ -121,19 +121,27 @@ jobs:
121121
122122
- name: Set image name and tag
123123
run: |
124-
echo "Git_IMAGE=ghcr.io/${{ github.repository_owner }}/marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
125-
echo "Ali_IMAGE=${{ secrets.ALI_IMAGE_NAME }}/marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
124+
echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
125+
echo "Ali_Tag=${{ secrets.ALI_IMAGE_NAME }}/marketplace:${{ env.RANDOM_TAG }}" >> $GITHUB_ENV
126126
127127
- name: Create manifest list and push
128128
working-directory: ${{ runner.temp }}/digests
129129
run: |
130130
echo "Pushing image with tag: ${{ env.RANDOM_TAG }}"
131131
TAGS="$(echo -e "${Git_Tag}\n${Ali_Tag}")"
132132
for TAG in $TAGS; do
133+
echo "Creating and pushing manifest for: $TAG"
133134
docker buildx imagetools create -t $TAG \
134135
$(printf 'ghcr.io/${{ github.repository_owner }}/marketplace@sha256:%s ' *)
136+
if [ $? -eq 0 ]; then
137+
echo "✅ Successfully pushed: $TAG"
138+
else
139+
echo "❌ Failed to push: $TAG"
140+
exit 1
141+
fi
135142
sleep 5
136143
done
137-
echo "✅ Successfully pushed images:"
138-
echo " - ${{ env.Git_IMAGE }}"
139-
echo " - ${{ env.Ali_IMAGE }}"
144+
echo ""
145+
echo "✅ All images pushed successfully:"
146+
echo " - ${{ env.Git_Tag }}"
147+
echo " - ${{ env.Ali_Tag }}"

projects/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "app",
3-
"version": "4.14.0",
3+
"version": "4.14.1",
44
"private": false,
55
"scripts": {
66
"dev": "npm run build:workers && next dev",

projects/marketplace/.env.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
S3_PREFIX=http://localhost:9000/fastgpt-plugins
2+
AUTH_TOKEN=xxxx

0 commit comments

Comments
 (0)