Skip to content

Commit

Permalink
Update workflow for building landingpage image (#47)
Browse files Browse the repository at this point in the history
Signed-off-by: Carson Yang <[email protected]>
  • Loading branch information
yangchuansheng authored Sep 3, 2024
1 parent 205f880 commit e5c3e45
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/fastgpt-home-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,23 @@ jobs:
NEXT_PUBLIC_HOME_URL=${{ secrets.NEXT_PUBLIC_HOME_URL }}
NEXT_PUBLIC_USER_URL=${{ secrets.NEXT_PUBLIC_USER_URL }}
NEXT_PUBLIC_FILING_ADDRESS=${{ secrets.NEXT_PUBLIC_FILING_ADDRESS }}
outputs:
tags: ${{ steps.datetime.outputs.datetime }}
update-landingpage-image:
needs: build-fastgpt-landingpage-images
runs-on: ubuntu-20.04
if: github.repository == 'labring/fastgpt-home'
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: set image deployment/fastgpt-home fastgpt-home=registry.cn-hangzhou.aliyuncs.com/labring4docker/fastgpt-home:${{ needs.build-fastgpt-docs-images.outputs.tags }}
- uses: actions-hub/kubectl@master
env:
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
with:
args: annotate deployment/fastgpt-docs originImageName="registry.cn-hangzhou.aliyuncs.com/labring4docker/fastgpt-home:${{ needs.build-fastgpt-docs-images.outputs.tags }}" --overwrite

0 comments on commit e5c3e45

Please sign in to comment.