Commit 3a5318c0 by Archer Committed by GitHub

fix: action (#5903)

parent 8eb6f37b
...@@ -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 }}"
{ {
"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",
......
S3_PREFIX=http://localhost:9000/fastgpt-plugins S3_PREFIX=http://localhost:9000/fastgpt-plugins
AUTH_TOKEN=xxxx
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment