-
Notifications
You must be signed in to change notification settings - Fork 35
/
repository.yml
67 lines (67 loc) · 1.42 KB
/
repository.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ROSTemplateFormatVersion: '2015-09-01'
Description:
zh-cn: 创建私有容器镜像仓库,命名空间默认为mytest,支持公有或私有访问类型,自动创建可配置。
en: Create a private container image repository with the default namespace set to
"mytest," supporting both public and private access types, and enable automatic
configuration creation.
Parameters:
Namespace:
Type: String
Default: mytest
DefaultVisibility:
Type: String
Default: PRIVATE
AllowedValues:
- PUBLIC
- PRIVATE
AutoCreate:
Type: Boolean
Default: false
AllowedValues:
- true
- false
RepoName:
Type: String
Default: mytest
Summary:
Type: String
Default: mytest
Detail:
Type: String
Default: mytest
RepoType:
Type: String
Default: PRIVATE
AllowedValues:
- PUBLIC
- PRIVATE
Resources:
NameSpace:
Type: ALIYUN::CR::Namespace
Properties:
Namespace:
Ref: Namespace
DefaultVisibility:
Ref: DefaultVisibility
AutoCreate:
Ref: AutoCreate
Repository:
Type: ALIYUN::CR::Repository
Properties:
RepoNamespace:
Ref: Namespace
Summary:
Ref: Summary
RepoType:
Ref: RepoType
Detail:
Ref: Detail
RepoName:
Ref: RepoName
DependsOn: NameSpace
Outputs:
RepoId:
Value:
Fn::GetAtt:
- Repository
- RepoId