Skip to content

Commit

Permalink
add oss deploy ci (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
chai001125 authored Aug 25, 2023
1 parent d1dfc3d commit ba28214
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions s.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
edition: 1.0.0
name: deploy-oss
access: seata
vars:
region: cn-hongkong
oss:
bucketName: 'seata-website-cn-hongkong'
services:
portal-www: # 静态资源
component: oss
actions:
post-deploy:
- plugin: cdn-cache-plugin
args:
operateType: refresh
objectPath: https://seata.io/
props:
region: ${vars.region}
bucket: ${vars.oss.bucketName} # OSS bucket 自动生成
acl: public-read # 读写权限
codeUri: ./deploy-dist # 指定本地要上传目录文件地址
website: # OSS 静态网站配置
index: index.html # 默认首页
error: 404.html # 默认 404 页
subDirType: redirect # 子目录首页 404 规则

0 comments on commit ba28214

Please sign in to comment.