Skip to content

Commit

Permalink
Docs: add environment for building website (#4267)
Browse files Browse the repository at this point in the history
Signed-off-by: Carson Yang <yangchuansheng33@gmail.com>
  • Loading branch information
yangchuansheng committed Nov 7, 2023
1 parent fdbccd6 commit f1a78a5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/deploy-docs-preview.yml
Expand Up @@ -93,6 +93,8 @@ jobs:
github-comment: false
# vercel-args: '--local-config vercel.json' # Optional
working-directory: ${{ env.BUILD_PATH }}/build
env:
BD_TOKEN: "${{ secrets.BD_TOKEN }}"

docsOutput:
needs: [ build ]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-docs-site.yml
Expand Up @@ -76,3 +76,5 @@ jobs:
github-comment: false
vercel-args: '--prod'
working-directory: ${{ env.BUILD_PATH }}/build
env:
BD_TOKEN: "${{ secrets.BD_TOKEN }}"
2 changes: 2 additions & 0 deletions .github/workflows/docs-site-image.yml
Expand Up @@ -58,6 +58,8 @@ jobs:
context: ./docs
file: ./docs/website/Dockerfile
push: true
build-args: |
BD_TOKEN=${{ env.BD_TOKEN }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

Expand Down
2 changes: 1 addition & 1 deletion docs/4.0/i18n/zh-Hans/self-hosting/installation.md
Expand Up @@ -114,7 +114,7 @@ admin Password: sealos2023

:::info注意

您还需要在域名服务商处添加一条该域名的 A 记录,地址解析到第一个 Master 节点的公网 IP 地址。同时还需要添加一条泛解析记录,将该域名的子域名也解析到第一个 Master 节点的内网 IP 地址。
您还需要在域名服务商处添加一条该域名的 A 记录,地址解析到第一个 Master 节点的公网 IP 地址。同时还需要添加一条泛解析记录,将该域名的子域名也解析到第一个 Master 节点的公网 IP 地址。

例如 (假设你的域名是 `cloud.example.io`,假设你的 Master 节点内网地址是 `192.168.1.10`):

Expand Down
3 changes: 3 additions & 0 deletions docs/website/Dockerfile
@@ -1,5 +1,8 @@
FROM node:20.4 AS builder

ARG BD_TOKEN
ENV BD_TOKEN=$BD_TOKEN

WORKDIR /app

COPY . /app
Expand Down

0 comments on commit f1a78a5

Please sign in to comment.