1- name : Build Marketplace images
2-
1+ name : Build fastgpt-marketplace images
32on :
43 workflow_dispatch :
5-
64jobs :
7- build-marketplace-images :
5+ build-fastgpt- marketplace-images :
86 permissions :
97 packages : write
108 contents : read
119 attestations : write
1210 id-token : write
1311 strategy :
1412 matrix :
15- archs :
13+ include :
1614 - arch : amd64
1715 - arch : arm64
1816 runs-on : ubuntu-24.04-arm
19- runs-on : ${{ matrix.archs. runs-on || 'ubuntu-24.04' }}
17+ runs-on : ${{ matrix.runs-on || 'ubuntu-24.04' }}
2018 steps :
2119 # install env
2220 - name : Checkout
23- uses : actions/checkout@v4
21+ uses : actions/checkout@v3
2422 with :
25- fetch-depth : 1
26-
23+ fetch-depth : 0
2724 - name : Set up Docker Buildx
2825 uses : docker/setup-buildx-action@v3
2926 with :
3027 driver-opts : network=host
31-
3228 - name : Cache Docker layers
3329 uses : actions/cache@v4
3430 with :
3531 path : /tmp/.buildx-cache
36- key : ${{ runner.os }}-${{ matrix.archs.arch }}- marketplace-buildx-${{ github.sha }}
32+ key : ${{ runner.os }}-marketplace-buildx-${{ github.sha }}
3733 restore-keys : |
38- ${{ runner.os }}-${{ matrix.archs.arch }}- marketplace-buildx-
34+ ${{ runner.os }}-marketplace-buildx-
3935
4036 # login docker
4137 - name : Login to GitHub Container Registry
@@ -51,13 +47,13 @@ jobs:
5147 username : ${{ secrets.ALI_HUB_USERNAME }}
5248 password : ${{ secrets.ALI_HUB_PASSWORD }}
5349
54- - name : Build for ${{ matrix.archs. arch }}
50+ - name : Build for ${{ matrix.arch }}
5551 id : build
5652 uses : docker/build-push-action@v6
5753 with :
5854 context : .
5955 file : projects/marketplace/Dockerfile
60- platforms : linux/${{ matrix.archs. arch }}
56+ platforms : linux/${{ matrix.arch }}
6157 labels : |
6258 org.opencontainers.image.source=https://github.com/${{ github.repository }}
6359 org.opencontainers.image.description=fastgpt-marketplace image
@@ -74,18 +70,18 @@ jobs:
7470 - name : Upload digest
7571 uses : actions/upload-artifact@v4
7672 with :
77- name : digests-marketplace-${{ github.sha }}-${{ matrix.archs .arch }}
73+ name : digests-fastgpt- marketplace-${{ github.sha }}-${{ matrix.arch }}
7874 path : ${{ runner.temp }}/digests/*
7975 if-no-files-found : error
8076 retention-days : 1
8177
82- release-marketplace-images :
78+ release-fastgpt- marketplace-images :
8379 permissions :
8480 packages : write
8581 contents : read
8682 attestations : write
8783 id-token : write
88- needs : build-marketplace-images
84+ needs : build-fastgpt- marketplace-images
8985 runs-on : ubuntu-24.04
9086 steps :
9187 - name : Login to GitHub Container Registry
@@ -105,7 +101,7 @@ jobs:
105101 uses : actions/download-artifact@v4
106102 with :
107103 path : ${{ runner.temp }}/digests
108- pattern : digests-marketplace-${{ github.sha }}-*
104+ pattern : digests-fastgpt- marketplace-${{ github.sha }}-*
109105 merge-multiple : true
110106
111107 - name : Set up Docker Buildx
0 commit comments