From 69bb1f3fa5c8271137961f0f52690532049e3d12 Mon Sep 17 00:00:00 2001 From: archer <545436317@qq.com> Date: Tue, 6 Jun 2023 23:26:24 +0800 Subject: [PATCH] docs --- .github/workflows/image.yml | 13 +++---------- src/pages/kb/components/SelectFileModal.tsx | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 92517eff0..79c0f804c 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -50,7 +50,6 @@ jobs: -t ${DOCKER_REPO_TAGGED} \ -f Dockerfile \ . - push-to-docker-hub: needs: build-images runs-on: ubuntu-20.04 @@ -70,14 +69,8 @@ jobs: echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV fi - name: Pull image from GitHub Container Registry - env: - IMAGE_TAG: ${{ env.IMAGE_TAG }} - run: docker pull ghcr.io/${{ github.repository_owner }}/fastgpt:${ IMAGE_TAG } + run: docker pull ghcr.io/${{ github.repository_owner }}/fastgpt:${{env.IMAGE_TAG}} - name: Tag image with Docker Hub repository name and version tag - env: - IMAGE_TAG: ${{ env.IMAGE_TAG }} - run: docker tag ghcr.io/${{ github.repository_owner }}/fastgpt:${ IMAGE_TAG } ${{ secrets.DOCKER_IMAGE_NAME }}:${ IMAGE_TAG } + run: docker tag ghcr.io/${{ github.repository_owner }}/fastgpt:${{env.IMAGE_TAG}} ${{ secrets.DOCKER_IMAGE_NAME }}:${{env.IMAGE_TAG}} - name: Push image to Docker Hub - env: - IMAGE_TAG: ${{ env.IMAGE_TAG }} - run: docker push ${{ secrets.DOCKER_IMAGE_NAME }}:${ IMAGE_TAG } + run: docker push ${{ secrets.DOCKER_IMAGE_NAME }}:${{env.IMAGE_TAG}} diff --git a/src/pages/kb/components/SelectFileModal.tsx b/src/pages/kb/components/SelectFileModal.tsx index 9db2919d2..d2b9ca7a1 100644 --- a/src/pages/kb/components/SelectFileModal.tsx +++ b/src/pages/kb/components/SelectFileModal.tsx @@ -69,7 +69,7 @@ const SelectFileModal = ({ chunks: [] }); const { openConfirm, ConfirmChild } = useConfirm({ - content: `确认导入该文件,需要一定时间进行拆解,该任务无法终止!QA 拆分仅能使用余额,如果余额不足,未完成的任务会被直接清除。一共 ${ + content: `确认导入该文件,需要一定时间进行拆解,该任务无法终止!如果余额不足,未完成的任务会被暂停。一共 ${ splitRes.chunks.length } 组。${splitRes.price ? `大约 ${splitRes.price} 元。` : ''}` });