File tree 2 files changed +48
-1
lines changed
2 files changed +48
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : build docker image
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ branch :
7
+ description : ' Docs 构建,请选择分支'
8
+ required : true
9
+ default : ' master'
10
+
11
+ jobs :
12
+ build :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+ - name : Login to Docker repository
18
+
19
+ with :
20
+ registry : registry.cn-beijing.aliyuncs.com
21
+ username : ${{ secrets.ACR_REGISTRY_USERNAME }}
22
+ password : ${{ secrets.ACR_REGISTRY_PASSWORD }}
23
+ - name : Setup ossutil
24
+ uses : coscene-io/setup-ossutil@v2
25
+ with :
26
+ # 填写Bucket所在地域的域名信息,可参考访问域名和数据中心。
27
+ endpoint : oss-cn-beijing.aliyuncs.com
28
+ # AccessKeyID
29
+ access-key-id : ${{ secrets.OSS_KEY_ID }}
30
+ # AccessKeySceret
31
+ access-key-secret : ${{ secrets.OSS_KEY_SECRET }}
32
+ - name : Setup Node.js environment
33
+
34
+ with :
35
+ node-version : 16
36
+ cache : yarn
37
+ - name : Build the Docker image and upload to oss
38
+ run : |
39
+ VERSION=$(cat version.txt)
40
+ PUBLIC_URL=//cdn.authing.co/authing-docs-v3/${VERSION}/
41
+ TAG=registry.cn-beijing.aliyuncs.com/authing-next/authing-docs-v3:${VERSION}
42
+ yarn config set registry https://registry.npmmirror.com
43
+ yarn
44
+ NODE_OPTIONS=--max-old-space-size=12000 PUBLIC_URL=$PUBLIC_URL yarn docs:build
45
+ docker build -t ${TAG} . --no-cache
46
+ docker push ${TAG}
47
+ ossutil cp -r -f docs/.vuepress/dist oss://authing-cdn-cn-prod/authing-docs-v3/${VERSION}/
Original file line number Diff line number Diff line change 1
- 0.0.47-lyy
1
+ 0.0.48
You can’t perform that action at this time.
0 commit comments