Skip to content

Commit e5c3e45

Browse files
Update workflow for building landingpage image (#47)
Signed-off-by: Carson Yang <[email protected]>
1 parent 205f880 commit e5c3e45

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/fastgpt-home-image.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,23 @@ jobs:
7272
NEXT_PUBLIC_HOME_URL=${{ secrets.NEXT_PUBLIC_HOME_URL }}
7373
NEXT_PUBLIC_USER_URL=${{ secrets.NEXT_PUBLIC_USER_URL }}
7474
NEXT_PUBLIC_FILING_ADDRESS=${{ secrets.NEXT_PUBLIC_FILING_ADDRESS }}
75+
76+
outputs:
77+
tags: ${{ steps.datetime.outputs.datetime }}
78+
update-landingpage-image:
79+
needs: build-fastgpt-landingpage-images
80+
runs-on: ubuntu-20.04
81+
if: github.repository == 'labring/fastgpt-home'
82+
steps:
83+
- name: Checkout code
84+
uses: actions/checkout@v3
85+
- uses: actions-hub/kubectl@master
86+
env:
87+
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
88+
with:
89+
args: set image deployment/fastgpt-home fastgpt-home=registry.cn-hangzhou.aliyuncs.com/labring4docker/fastgpt-home:${{ needs.build-fastgpt-docs-images.outputs.tags }}
90+
- uses: actions-hub/kubectl@master
91+
env:
92+
KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }}
93+
with:
94+
args: annotate deployment/fastgpt-docs originImageName="registry.cn-hangzhou.aliyuncs.com/labring4docker/fastgpt-home:${{ needs.build-fastgpt-docs-images.outputs.tags }}" --overwrite

0 commit comments

Comments
 (0)