diff --git a/.github/workflows/fastgpt-home-image.yml b/.github/workflows/fastgpt-home-image.yml index 81f9793..2edd8d0 100644 --- a/.github/workflows/fastgpt-home-image.yml +++ b/.github/workflows/fastgpt-home-image.yml @@ -28,8 +28,6 @@ jobs: with: # list of Docker images to use as base name for tags images: | - ${{ secrets.DOCKER_HUB_NAME }}/fastgpt-home - ghcr.io/${{ github.repository_owner }}/fastgpt-home registry.cn-hangzhou.aliyuncs.com/labring4docker/fastgpt-home tags: | ${{ steps.datetime.outputs.datetime }} @@ -41,19 +39,6 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - - name: Login to DockerHub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_HUB_NAME }} - password: ${{ secrets.DOCKER_HUB_PASSWORD }} - - - name: Login to ghcr.io - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GITHUB_TOKEN }} - - name: Login to Aliyun uses: docker/login-action@v3 with: diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 1c378ca..66e5391 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -55,7 +55,7 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} - command: pages deploy ./projects/fastgpt/out --project-name=fastgpt-home-run + command: pages deploy ./projects/fastgpt/out --project-name=fastgpt-home - name: Comment Preview URL uses: FinleyGe/github-tools@0.0.1 diff --git a/projects/fastgpt/Dockerfile b/projects/fastgpt/Dockerfile index 74048e3..7e63022 100644 --- a/projects/fastgpt/Dockerfile +++ b/projects/fastgpt/Dockerfile @@ -24,18 +24,17 @@ ENV NEXT_PUBLIC_POLICE_FILING=$NEXT_PUBLIC_POLICE_FILING # copy packages and one project ADD . ./ - -RUN sed -i "s#https://doc.fastgpt.io#https://doc.fastgpt.cn#g" $(grep -rl "https://doc.fastgpt.io" ./) -RUN sed -i "s#https://doc.fastgpt.io#https://doc.fastgpt.cn#g" $(grep -rl "https://doc.fastgpt.io" ./) -RUN sed -i "s#https://cloud.fastgpt.io#https://cloud.fastgpt.cn#g" $(grep -rl "https://cloud.fastgpt.io" ./) -RUN sed -i "s/defaultLocale = \"en\"/defaultLocale = \"zh\"/g" lib/i18n.ts +# Replace URLs in files (fix sed -i syntax for Alpine Linux) +RUN sed -i '' "s#https://doc.fastgpt.io#https://doc.fastgpt.cn#g" $(grep -rl "https://doc.fastgpt.io" ./ || true) +RUN sed -i '' "s#https://cloud.fastgpt.io#https://cloud.fastgpt.cn#g" $(grep -rl "https://cloud.fastgpt.io" ./ || true) +RUN sed -i '' "s/defaultLocale = \"en\"/defaultLocale = \"zh\"/g" lib/i18n.ts RUN npm install RUN npm run build FROM fholzer/nginx-brotli:latest -LABEL org.opencontainers.image.source https://github.com/labring/fastgpt-home +LABEL org.opencontainers.image.source="https://github.com/labring/fastgpt-home" COPY --from=builder /app/out /usr/share/nginx/html COPY nginx.conf /etc/nginx/conf.d/default.conf \ No newline at end of file diff --git a/projects/fastgpt/components/home/Hero.tsx b/projects/fastgpt/components/home/Hero.tsx index 1a7a7ce..308e87a 100644 --- a/projects/fastgpt/components/home/Hero.tsx +++ b/projects/fastgpt/components/home/Hero.tsx @@ -28,7 +28,7 @@ const Hero = ({ locale, CTALocale, stars }: { locale: any; CTALocale: any; stars border: '1px solid rgba(179, 220, 229, 0.40)', }} > - 20w+  + 40w+  {locale.maker}