Commit 33f2f108 by Archer Committed by GitHub

ci(docs): publish deployment images to GHCR (#7482)

parent 56fec79a
...@@ -97,17 +97,17 @@ jobs: ...@@ -97,17 +97,17 @@ jobs:
with: with:
# list of Docker images to use as base name for tags # list of Docker images to use as base name for tags
images: | images: |
${{ secrets.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-docs ghcr.io/${{ github.repository_owner }}/fastgpt-docs
tags: | tags: |
${{ matrix.domain_config.suffix }}-${{ needs.generate-timestamp.outputs.datetime }} ${{ matrix.domain_config.suffix }}-${{ needs.generate-timestamp.outputs.datetime }}
flavor: latest=false flavor: latest=false
- name: Login to Aliyun - name: Login to GitHub Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: registry.cn-hangzhou.aliyuncs.com registry: ghcr.io
username: ${{ secrets.FASTGPT_ALI_IMAGE_USER }} username: ${{ github.actor }}
password: ${{ secrets.FASTGPT_ALI_IMAGE_PSW }} password: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare Docker workspace catalog - name: Prepare Docker workspace catalog
run: cp pnpm-workspace.yaml document/pnpm-workspace.yaml run: cp pnpm-workspace.yaml document/pnpm-workspace.yaml
...@@ -169,8 +169,8 @@ jobs: ...@@ -169,8 +169,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.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-docs:${{ matrix.domain_config.suffix }}-${{ needs.generate-timestamp.outputs.datetime }} kubectl set image deployment/${{ matrix.domain_config.deployment }} ${{ matrix.domain_config.deployment }}=ghcr.io/${{ github.repository_owner }}/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.FASTGPT_ALI_IMAGE_PREFIX }}/fastgpt-docs:${{ matrix.domain_config.suffix }}-${{ needs.generate-timestamp.outputs.datetime }}" --overwrite kubectl annotate deployment/${{ matrix.domain_config.deployment }} originImageName="ghcr.io/${{ github.repository_owner }}/fastgpt-docs:${{ matrix.domain_config.suffix }}-${{ needs.generate-timestamp.outputs.datetime }}" --overwrite
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment