Skip to content

Commit

Permalink
Rename to AAI
Browse files Browse the repository at this point in the history
  • Loading branch information
XueMoMo committed Oct 27, 2023
1 parent 008d0af commit 9ed46f8
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 61 deletions.
108 changes: 54 additions & 54 deletions .github/workflows/fastgpt-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ jobs:
- name: Set DOCKER_REPO_TAGGED based on branch or tag
run: |
if [[ "${{ github.ref_name }}" == "main" ]]; then
echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/fastgpt:latest" >> $GITHUB_ENV
echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/aai:latest" >> $GITHUB_ENV
else
echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/fastgpt:${{ github.ref_name }}" >> $GITHUB_ENV
echo "DOCKER_REPO_TAGGED=ghcr.io/${{ github.repository_owner }}/aai:${{ github.ref_name }}" >> $GITHUB_ENV
fi
- name: Build and publish image for main branch or tag push event
env:
Expand All @@ -54,62 +54,62 @@ jobs:
--build-arg name=app \
--platform linux/amd64,linux/arm64 \
--label "org.opencontainers.image.source= https://github.com/ ${{ github.repository_owner }}/FastGPT" \
--label "org.opencontainers.image.description=fastgpt image" \
--label "org.opencontainers.image.description=aai image" \
--label "org.opencontainers.image.licenses=Apache" \
--push \
--cache-from=type=local,src=/tmp/.buildx-cache \
--cache-to=type=local,dest=/tmp/.buildx-cache \
-t ${DOCKER_REPO_TAGGED} \
-f Dockerfile \
.
push-to-docker-hub:
needs: build-fastgpt-images
runs-on: ubuntu-20.04
if: github.repository == 'labring/FastGPT'
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_NAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Set DOCKER_REPO_TAGGED based on branch or tag
run: |
if [[ "${{ github.ref_name }}" == "main" ]]; then
echo "IMAGE_TAG=latest" >> $GITHUB_ENV
else
echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
fi
- name: Pull image from GitHub Container Registry
run: docker pull ghcr.io/${{ github.repository_owner }}/fastgpt:${{env.IMAGE_TAG}}
- name: Tag image with Docker Hub repository name and version 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
run: docker push ${{ secrets.DOCKER_IMAGE_NAME }}:${{env.IMAGE_TAG}}
push-to-ali-hub:
needs: build-fastgpt-images
if: github.repository == 'labring/FastGPT'
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Login to Ali Hub
uses: docker/login-action@v2
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALI_HUB_USERNAME }}
password: ${{ secrets.ALI_HUB_PASSWORD }}
- name: Set DOCKER_REPO_TAGGED based on branch or tag
run: |
if [[ "${{ github.ref_name }}" == "main" ]]; then
echo "IMAGE_TAG=latest" >> $GITHUB_ENV
else
echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
fi
- name: Pull image from GitHub Container Registry
run: docker pull ghcr.io/${{ github.repository_owner }}/fastgpt:${{env.IMAGE_TAG}}
- name: Tag image with Docker Hub repository name and version tag
run: docker tag ghcr.io/${{ github.repository_owner }}/fastgpt:${{env.IMAGE_TAG}} ${{ secrets.ALI_IMAGE_NAME }}:${{env.IMAGE_TAG}}
- name: Push image to Docker Hub
run: docker push ${{ secrets.ALI_IMAGE_NAME }}:${{env.IMAGE_TAG}}
# push-to-docker-hub:
# needs: build-fastgpt-images
# runs-on: ubuntu-20.04
# if: github.repository == 'labring/FastGPT'
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Login to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_HUB_NAME }}
# password: ${{ secrets.DOCKER_HUB_PASSWORD }}
# - name: Set DOCKER_REPO_TAGGED based on branch or tag
# run: |
# if [[ "${{ github.ref_name }}" == "main" ]]; then
# echo "IMAGE_TAG=latest" >> $GITHUB_ENV
# else
# echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
# fi
# - name: Pull image from GitHub Container Registry
# run: docker pull ghcr.io/${{ github.repository_owner }}/fastgpt:${{env.IMAGE_TAG}}
# - name: Tag image with Docker Hub repository name and version 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
# run: docker push ${{ secrets.DOCKER_IMAGE_NAME }}:${{env.IMAGE_TAG}}
# push-to-ali-hub:
# needs: build-fastgpt-images
# if: github.repository == 'labring/FastGPT'
# runs-on: ubuntu-20.04
# steps:
# - name: Checkout code
# uses: actions/checkout@v3
# - name: Login to Ali Hub
# uses: docker/login-action@v2
# with:
# registry: registry.cn-hangzhou.aliyuncs.com
# username: ${{ secrets.ALI_HUB_USERNAME }}
# password: ${{ secrets.ALI_HUB_PASSWORD }}
# - name: Set DOCKER_REPO_TAGGED based on branch or tag
# run: |
# if [[ "${{ github.ref_name }}" == "main" ]]; then
# echo "IMAGE_TAG=latest" >> $GITHUB_ENV
# else
# echo "IMAGE_TAG=${{ github.ref_name }}" >> $GITHUB_ENV
# fi
# - name: Pull image from GitHub Container Registry
# run: docker pull ghcr.io/${{ github.repository_owner }}/fastgpt:${{env.IMAGE_TAG}}
# - name: Tag image with Docker Hub repository name and version tag
# run: docker tag ghcr.io/${{ github.repository_owner }}/fastgpt:${{env.IMAGE_TAG}} ${{ secrets.ALI_IMAGE_NAME }}:${{env.IMAGE_TAG}}
# - name: Push image to Docker Hub
# run: docker push ${{ secrets.ALI_IMAGE_NAME }}:${{env.IMAGE_TAG}}
2 changes: 1 addition & 1 deletion projects/app/src/constants/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const htmlTemplate = `<!DOCTYPE html>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width initial-scale=1.0" />
<title>FastGPT</title>
<title>AAI</title>
</head>
<style>
.markdown > :first-child {
Expand Down
13 changes: 8 additions & 5 deletions projects/app/src/pages/api/system/getInitData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,16 @@ const defaultSystemEnv: SystemEnvType = {
};
const defaultFeConfigs: FeConfigsType = {
show_emptyChat: true,
show_contact: true,
show_git: true,
show_doc: true,
show_contact: false,
show_git: false,
show_doc: false,
show_pay: false,
show_openai_account: false,
show_register: false,
docUrl: 'https://docs.fastgpt.run',
openAPIDocUrl: 'https://doc.fastgpt.run/docs/development/openapi',
systemTitle: 'FastGPT',
authorText: 'Made by FastGPT Team.',
systemTitle: 'AAI',
authorText: 'Made by AAI Team.',
limit: {
exportLimitMinutes: 0
},
Expand Down
2 changes: 1 addition & 1 deletion projects/app/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Home = ({ homeUrl = '/' }: { homeUrl: string }) => {
return (
<>
<Head>
<title>{feConfigs?.systemTitle || 'FastGPT'}</title>
<title>{feConfigs?.systemTitle || 'AAI'}</title>
</Head>
<Box id="home" bg={'myWhite.600'} h={'100vh'} overflowY={'auto'} overflowX={'hidden'}>
<Box position={'fixed'} zIndex={10} top={0} left={0} right={0}>
Expand Down

0 comments on commit 9ed46f8

Please sign in to comment.