-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathACS::CICD::GitCodeRepo.yml
79 lines (79 loc) · 1.94 KB
/
ACS::CICD::GitCodeRepo.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
68
69
70
71
72
73
74
75
76
77
78
79
FormatVersion: OOS-2019-06-01
Description:
name-en: ACS::CICD::GitCodeRepo
name-zh-cn: git代码源
en: Generate the address of the user-specified github/gitee repository code
zh-cn: 生成用户指定的github/gitee仓库代码的地址
Parameters:
platform:
Type: String
Label:
en: Platform
zh-cn: 平台
AssociationProperty: ALIYUN::OOS::GitPlatform::Name
AllowedValues:
- github
- gitee
owner:
Type: String
Label:
en: Owner
zh-cn: 所有者
AssociationProperty: ALIYUN::OOS::GitAccount::Name
AssociationPropertyMetadata:
Platform: '${platform}'
organization:
Type: String
Label:
en: Organization
zh-cn: 组织
Default: ''
AssociationProperty: ALIYUN::OOS::GitOrganization::Name
AssociationPropertyMetadata:
Platform: '${platform}'
Owner: '${owner}'
repository:
Type: String
Label:
en: Repository
zh-cn: 仓库
AssociationProperty: ALIYUN::OOS::GitRepository::Name
AssociationPropertyMetadata:
Platform: '${platform}'
Organization: '${organization}'
Owner: '${owner}'
branch:
Label:
en: Branch
zh-cn: 分支
AssociationProperty: ALIYUN::OOS::GitBranch::Name
AssociationPropertyMetadata:
Platform: ${platform}
Organization: ${organization}
Owner: ${owner}
RepoFullName: ${repository}
Type: String
Tasks:
- Name: getGitCodeRepo
Action: ACS::GitCodeRepo
Description:
en: get git code repo
zh-cn: 生成git仓库地址
Properties:
Platform: '{{platform}}'
Owner: '{{owner}}'
Organization: '{{organization}}'
Repository: '{{repository}}'
Outputs:
authorizedUrl:
Type: String
ValueSelector: .AuthorizedUrl
Outputs:
authorizedUrl:
Type: String
Value:
Fn::Join:
- ' '
- - '--branch'
- '{{branch}}'
- '{{getGitCodeRepo.authorizedUrl}}'