From 7da7636abcecd5a2ae20c08fada35438c309ccca Mon Sep 17 00:00:00 2001 From: yuehua-s <41819795+yuehua-s@users.noreply.github.com> Date: Tue, 16 Apr 2024 23:19:56 +0800 Subject: [PATCH] feat:support action update Readme (#3773) --- .github/workflows/docker-build.yaml | 19 ++++++++++++++++++- README.md | 2 +- README_en.md | 2 +- README_ja.md | 2 +- 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-build.yaml b/.github/workflows/docker-build.yaml index 042e88b4d..48d32d404 100644 --- a/.github/workflows/docker-build.yaml +++ b/.github/workflows/docker-build.yaml @@ -3,6 +3,10 @@ on: push: branches: - master + paths-ignore: + - 'README.md' + - 'README_en.md' + - 'README_ja.md' env: TZ: Asia/Shanghai jobs: @@ -135,4 +139,17 @@ jobs: # uses: docker/login-action@v2 # with: # username: ${{ secrets.DOCKERHUB_USERNAME }} -# password: ${{ secrets.DOCKERHUB_TOKEN }} \ No newline at end of file +# password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Update README.md + run: | + sed -i "s|uswccr.ccs.tencentyun.com/chatchat/chatchat:[^ ]*|uswccr.ccs.tencentyun.com/chatchat/chatchat:${{ steps.imageTag.outputs.image_tag }}|g" README.md + sed -i "s|uswccr.ccs.tencentyun.com/chatchat/chatchat:[^ ]*|uswccr.ccs.tencentyun.com/chatchat/chatchat:${{ steps.imageTag.outputs.image_tag }}|g" README_en.md + sed -i "s|uswccr.ccs.tencentyun.com/chatchat/chatchat:[^ ]*|uswccr.ccs.tencentyun.com/chatchat/chatchat:${{ steps.imageTag.outputs.image_tag }}|g" README_ja.md + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git commit -am "feat:update docker image:tag" + - name: Push README.md + uses: ad-m/github-push-action@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: ${{ github.ref }} \ No newline at end of file diff --git a/README.md b/README.md index 540069ac4..ae508c02a 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ OpenAI GPT API 的调用,并将在后续持续扩充对各类模型及模型 A ```shell docker run -d --gpus all -p 80:8501 isafetech/chatchat:0.2.10 -docker run -d --gpus all -p 80:8501 ccr.ccs.tencentyun.com/chatchat/chatchat:0.2.10 +docker run -d --gpus all -p 80:8501 uswccr.ccs.tencentyun.com/chatchat/chatchat:0.2.10 docker run -d --gpus all -p 80:8501 registry.cn-beijing.aliyuncs.com/chatchat/chatchat:0.2.10 ``` diff --git a/README_en.md b/README_en.md index 888077ca5..f1d0100d8 100644 --- a/README_en.md +++ b/README_en.md @@ -70,7 +70,7 @@ these. ```shell docker run -d --gpus all -p 80:8501 isafetech/chatchat:0.2.10 -docker run -d --gpus all -p 80:8501 ccr.ccs.tencentyun.com/chatchat/chatchat:0.2.10 +docker run -d --gpus all -p 80:8501 uswccr.ccs.tencentyun.com/chatchat/chatchat:0.2.10 docker run -d --gpus all -p 80:8501 registry.cn-beijing.aliyuncs.com/chatchat/chatchat:0.2.10 ``` diff --git a/README_ja.md b/README_ja.md index 8a6b4a136..350d127bd 100644 --- a/README_ja.md +++ b/README_ja.md @@ -71,7 +71,7 @@ Q&A)ソリューションを構築することです。 ```shell docker run -d --gpus all -p 80:8501 isafetech/chatchat:0.2.10 -docker run -d --gpus all -p 80:8501 ccr.ccs.tencentyun.com/chatchat/chatchat:0.2.10 +docker run -d --gpus all -p 80:8501 uswccr.ccs.tencentyun.com/chatchat/chatchat:0.2.10 docker run -d --gpus all -p 80:8501 registry.cn-beijing.aliyuncs.com/chatchat/chatchat:0.2.10 ```