1- name : Build fastgpt-sandbox images
1+ name : Build fastgpt-code- sandbox images
22on :
33 workflow_dispatch :
44 push :
55 paths :
6- - ' projects/sandbox/**'
6+ - ' projects/code- sandbox/**'
77 tags :
88 - ' v*'
99jobs :
10- build-fastgpt-sandbox-images :
10+ build-fastgpt-code- sandbox-images :
1111 permissions :
1212 packages : write
1313 contents : read
@@ -56,12 +56,12 @@ jobs:
5656 uses : docker/build-push-action@v6
5757 with :
5858 context : .
59- file : projects/sandbox/Dockerfile
59+ file : projects/code- sandbox/Dockerfile
6060 platforms : linux/${{ matrix.arch }}
6161 labels : |
6262 org.opencontainers.image.source=https://github.com/${{ github.repository }}
63- org.opencontainers.image.description=fastgpt-sandbox image
64- outputs : type=image,"name=ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox,${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-sandbox",push-by-digest=true,push=true
63+ org.opencontainers.image.description=fastgpt-code- sandbox image
64+ outputs : type=image,"name=ghcr.io/${{ github.repository_owner }}/fastgpt-code- sandbox,${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-code -sandbox",push-by-digest=true,push=true
6565 cache-from : type=local,src=/tmp/.buildx-cache
6666 cache-to : type=local,dest=/tmp/.buildx-cache
6767
@@ -74,18 +74,18 @@ jobs:
7474 - name : Upload digest
7575 uses : actions/upload-artifact@v4
7676 with :
77- name : digests-fastgpt-sandbox-${{ github.sha }}-${{ matrix.arch }}
77+ name : digests-fastgpt-code- sandbox-${{ github.sha }}-${{ matrix.arch }}
7878 path : ${{ runner.temp }}/digests/*
7979 if-no-files-found : error
8080 retention-days : 1
8181
82- release-fastgpt-sandbox-images :
82+ release-fastgpt-code- sandbox-images :
8383 permissions :
8484 packages : write
8585 contents : read
8686 attestations : write
8787 id-token : write
88- needs : build-fastgpt-sandbox-images
88+ needs : build-fastgpt-code- sandbox-images
8989 runs-on : ubuntu-24.04
9090 steps :
9191 - name : Login to GitHub Container Registry
@@ -110,7 +110,7 @@ jobs:
110110 uses : actions/download-artifact@v4
111111 with :
112112 path : ${{ runner.temp }}/digests
113- pattern : digests-fastgpt-sandbox-${{ github.sha }}-*
113+ pattern : digests-fastgpt-code- sandbox-${{ github.sha }}-*
114114 merge-multiple : true
115115
116116 - name : Set up Docker Buildx
@@ -119,19 +119,19 @@ jobs:
119119 - name : Set image name and tag
120120 run : |
121121 if [[ "${{ github.ref_name }}" == "main" ]]; then
122- echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox:latest" >> $GITHUB_ENV
123- echo "Git_Latest=ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox:latest" >> $GITHUB_ENV
124- echo "Ali_Tag=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-sandbox:latest" >> $GITHUB_ENV
125- echo "Ali_Latest=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-sandbox:latest" >> $GITHUB_ENV
126- echo "Docker_Hub_Tag=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-sandbox:latest" >> $GITHUB_ENV
127- echo "Docker_Hub_Latest=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-sandbox:latest" >> $GITHUB_ENV
122+ echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/fastgpt-code- sandbox:latest" >> $GITHUB_ENV
123+ echo "Git_Latest=ghcr.io/${{ github.repository_owner }}/fastgpt-code- sandbox:latest" >> $GITHUB_ENV
124+ echo "Ali_Tag=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-code- sandbox:latest" >> $GITHUB_ENV
125+ echo "Ali_Latest=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-code- sandbox:latest" >> $GITHUB_ENV
126+ echo "Docker_Hub_Tag=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-code- sandbox:latest" >> $GITHUB_ENV
127+ echo "Docker_Hub_Latest=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-code- sandbox:latest" >> $GITHUB_ENV
128128 else
129- echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox:${{ github.ref_name }}" >> $GITHUB_ENV
130- echo "Git_Latest=ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox:latest" >> $GITHUB_ENV
131- echo "Ali_Tag=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-sandbox:${{ github.ref_name }}" >> $GITHUB_ENV
132- echo "Ali_Latest=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-sandbox:latest" >> $GITHUB_ENV
133- echo "Docker_Hub_Tag=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-sandbox:${{ github.ref_name }}" >> $GITHUB_ENV
134- echo "Docker_Hub_Latest=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-sandbox:latest" >> $GITHUB_ENV
129+ echo "Git_Tag=ghcr.io/${{ github.repository_owner }}/fastgpt-code- sandbox:${{ github.ref_name }}" >> $GITHUB_ENV
130+ echo "Git_Latest=ghcr.io/${{ github.repository_owner }}/fastgpt-code- sandbox:latest" >> $GITHUB_ENV
131+ echo "Ali_Tag=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-code- sandbox:${{ github.ref_name }}" >> $GITHUB_ENV
132+ echo "Ali_Latest=${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-code- sandbox:latest" >> $GITHUB_ENV
133+ echo "Docker_Hub_Tag=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-code- sandbox:${{ github.ref_name }}" >> $GITHUB_ENV
134+ echo "Docker_Hub_Latest=${{ secrets.DOCKER_IMAGE_NAME }}/fastgpt-code- sandbox:latest" >> $GITHUB_ENV
135135 fi
136136
137137 - name : Create manifest list and push
@@ -140,6 +140,6 @@ jobs:
140140 TAGS="$(echo -e "${Git_Tag}\n${Git_Latest}\n${Ali_Tag}\n${Ali_Latest}\n${Docker_Hub_Tag}\n${Docker_Hub_Latest}")"
141141 for TAG in $TAGS; do
142142 docker buildx imagetools create -t $TAG \
143- $(printf 'ghcr.io/${{ github.repository_owner }}/fastgpt-sandbox@sha256:%s ' *)
143+ $(printf 'ghcr.io/${{ github.repository_owner }}/fastgpt-code- sandbox@sha256:%s ' *)
144144 sleep 5
145145 done
0 commit comments