Skip to content

Commit f4823cc

Browse files
committed
change to template engine
1 parent 985f941 commit f4823cc

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

publish.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Type: Application
22
Name: cdn-backup-origin
33
Provider:
44
- 阿里云
5-
Version: 0.1.0
5+
Version: 0.1.1
66
Description: 快速部署CDN备份源站项目到函数计算
77
HomePage: https://github.com/devsapp/cdn-backup-origin
88
Tags:
@@ -51,7 +51,7 @@ Parameters:
5151
title: 服务角色
5252
type: string
5353
default: ''
54-
description: 函数执行时所扮演的角色
54+
description: 函数执行时所扮演的角色,不指定则默认使用fcdefaultrole
5555
x-role:
5656
type: object
5757
name: cdnbackuprole
@@ -83,13 +83,8 @@ Parameters:
8383
warmupDomain:
8484
title: 预热域名
8585
type: string
86-
description: 抓取源站并预热到CDN节点
87-
default: 'unknown'
88-
# maxFetchLevel:
89-
# title: 最大抓取层级
90-
# type: number
91-
# default: 0
92-
# description: 最大抓取层级
86+
description: 抓取源站并预热到CDN节点,不指定则不进行预热
87+
default: ''
9388
cronExpression:
9489
title: 定时触发时间
9590
type: string

src/s.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ vars:
77
environmentVariables:
88
ORIGIN: '{{ origin }}'
99
BACKUP_ORIGIN: '{{ backupOrigin }}'
10+
{{if warmupDomain !== ''}}
1011
WARMUP_DOMAIN: '{{ warmupDomain }}'
12+
{{/if}}
1113
service:
1214
name: '{{ serviceName }}'
1315
internetAccess: true

0 commit comments

Comments
 (0)