Skip to content

Commit

Permalink
Github actions auto update oos templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ceshihao committed Sep 15, 2024
1 parent fcef04c commit 5b0efc7
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
6 changes: 3 additions & 3 deletions list-templates.json
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
"CreatedDate": "2019-10-22T08:17:08Z",
"Description": "{\"en\": \"Creates an ECS image\", \"zh-cn\": \"创建一个ECS镜像\", \"name-en\": \"Create Image\", \"name-zh-cn\": \"创建镜像\", \"categories\": [\"image_manage\", \"application_manage\"]}",
"HasTrigger": false,
"Hash": "81135cac5cb27bd658eaf49dba16030e55c6fc226532ece97a383c03e30408f6",
"Hash": "fed933ef370a7cb5fc17b7b2ad29c44495df86460978b5bc9991c1df67c064f1",
"IsFavorite": false,
"Popularity": 8.23,
"ResourceGroupId": "rg-acfmz4wrjukykdy",
Expand All @@ -310,10 +310,10 @@
"TemplateId": "t-4bdb1745c171401883a2",
"TemplateName": "ACS-ECS-CreateImage",
"TemplateType": "Automation",
"TemplateVersion": "v17",
"TemplateVersion": "v19",
"TotalExecutionCount": -1,
"UpdatedBy": "ACS",
"UpdatedDate": "2024-09-06T06:00:42Z"
"UpdatedDate": "2024-09-14T08:12:12Z"
},
{
"Category": "Other",
Expand Down
40 changes: 40 additions & 0 deletions templates/ACS-ECS-CreateImage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,34 @@ Parameters:
AssociationPropertyMetadata:
ShowSystem: false
Default: []
imageFamily:
Label:
en: ImageFamily
zh-cn: 镜像族系
Type: String
Default: ''
imageDescription:
Label:
en: ImageDescription
zh-cn: 镜像描述
Type: String
Default: ''
resourceGroupId:
Label:
en: ResourceGroupId
zh-cn: 资源组ID
Type: String
AssociationProperty: ALIYUN::ECS::ResourceGroup::ResourceGroupId
Default: ''
detectionStrategy:
Label:
en: DetectionStrategy
zh-cn: 镜像检测策略
Type: String
AllowedValues:
- Standard
- ''
Default: ''
whetherOnlySystemDisk:
Label:
en: WhetherOnlySystemDisk
Expand Down Expand Up @@ -68,6 +96,10 @@ Tasks:
imageName: '{{ imageName }}__on_{{ ACS::ExecutionId }}_at_{{ Acs::CurrentDate }}'
instanceId: '{{ instanceId }}'
tags: '{{tags}}'
imageFamily: '{{ imageFamily }}'
imageDescription: '{{ imageDescription }}'
resourceGroupId: '{{ resourceGroupId }}'
detectionStrategy: '{{ detectionStrategy }}'
Outputs:
imageId:
ValueSelector: imageId
Expand All @@ -86,6 +118,10 @@ Tasks:
imageName: '{{ imageName }}__on_{{ ACS::ExecutionId }}_at_{{ Acs::CurrentDate }}'
instanceId: '{{ instanceId }}'
tags: '{{tags}}'
imageFamily: '{{ imageFamily }}'
imageDescription: '{{ imageDescription }}'
resourceGroupId: '{{ resourceGroupId }}'
detectionStrategy: '{{ detectionStrategy }}'
Outputs:
imageId:
ValueSelector: imageId
Expand Down Expand Up @@ -114,6 +150,10 @@ Metadata:
- imageName
- tags
- whetherOnlySystemDisk
- imageFamily
- imageDescription
- resourceGroupId
- detectionStrategy
Label:
default:
zh-cn: 镜像设置
Expand Down

0 comments on commit 5b0efc7

Please sign in to comment.