mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-15 07:31:19 +00:00
fix: doc (#5306)
This commit is contained in:
25
.github/workflows/docs-deploy.yml
vendored
25
.github/workflows/docs-deploy.yml
vendored
@@ -15,7 +15,18 @@ permissions:
|
|||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
# Add a new job to generate unified timestamp
|
||||||
|
generate-timestamp:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
datetime: ${{ steps.datetime.outputs.datetime }}
|
||||||
|
steps:
|
||||||
|
- name: Get current datetime
|
||||||
|
id: datetime
|
||||||
|
run: echo "datetime=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build-images:
|
build-images:
|
||||||
|
needs: generate-timestamp
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -29,10 +40,6 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Get current datetime
|
|
||||||
id: datetime
|
|
||||||
run: echo "datetime=$(date +'%Y%m%d%H%M%S')" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Docker meta
|
- name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v5
|
uses: docker/metadata-action@v5
|
||||||
@@ -41,7 +48,7 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
${{ secrets.ALI_IMAGE_NAME }}/fastgpt-docs
|
${{ secrets.ALI_IMAGE_NAME }}/fastgpt-docs
|
||||||
tags: |
|
tags: |
|
||||||
${{ matrix.domain_config.suffix }}-${{ steps.datetime.outputs.datetime }}
|
${{ matrix.domain_config.suffix }}-${{ needs.generate-timestamp.outputs.datetime }}
|
||||||
flavor: latest=false
|
flavor: latest=false
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
@@ -81,11 +88,9 @@ jobs:
|
|||||||
NEXT_PUBLIC_SEARCH_APPID=HZAF4C2T88
|
NEXT_PUBLIC_SEARCH_APPID=HZAF4C2T88
|
||||||
FASTGPT_HOME_DOMAIN=${{ matrix.domain_config.domain }}
|
FASTGPT_HOME_DOMAIN=${{ matrix.domain_config.domain }}
|
||||||
${{ matrix.domain_config.suffix == 'cn' && 'SEARCH_APPWRITEKEY=${{ secrets.SEARCH_APPWRITEKEY }}' || '' }}
|
${{ matrix.domain_config.suffix == 'cn' && 'SEARCH_APPWRITEKEY=${{ secrets.SEARCH_APPWRITEKEY }}' || '' }}
|
||||||
outputs:
|
|
||||||
tags: ${{ steps.datetime.outputs.datetime }}
|
|
||||||
|
|
||||||
update-images:
|
update-images:
|
||||||
needs: build-images
|
needs: [generate-timestamp, build-images]
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@@ -111,8 +116,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Update deployment image
|
- name: Update deployment image
|
||||||
run: |
|
run: |
|
||||||
kubectl set image deployment/${{ matrix.domain_config.deployment }} ${{ matrix.domain_config.deployment }}=${{ secrets.ALI_IMAGE_NAME }}/fastgpt-docs:${{ matrix.domain_config.suffix }}-${{ needs.build-images.outputs.tags }}
|
kubectl set image deployment/${{ matrix.domain_config.deployment }} ${{ matrix.domain_config.deployment }}=${{ secrets.ALI_IMAGE_NAME }}/fastgpt-docs:${{ matrix.domain_config.suffix }}-${{ needs.generate-timestamp.outputs.datetime }}
|
||||||
|
|
||||||
- name: Annotate deployment
|
- name: Annotate deployment
|
||||||
run: |
|
run: |
|
||||||
kubectl annotate deployment/${{ matrix.domain_config.deployment }} originImageName="${{ secrets.ALI_IMAGE_NAME }}/fastgpt-docs:${{ matrix.domain_config.suffix }}-${{ needs.build-images.outputs.tags }}" --overwrite
|
kubectl annotate deployment/${{ matrix.domain_config.deployment }} originImageName="${{ secrets.ALI_IMAGE_NAME }}/fastgpt-docs:${{ matrix.domain_config.suffix }}-${{ needs.generate-timestamp.outputs.datetime }}" --overwrite
|
||||||
|
Reference in New Issue
Block a user