示例:定义两个操作组
以下示例说明如何定义两个 Amazon CodeCatalyst 操作组:BuildAndTest
和 Deploy
。BuildAndTest
组包括两个操作(Build
和 Test
),Deploy
组同样包括两个操作(DeployCloudFormationStack
和 DeployToECS
)。
Actions:
BuildAndTest: # Action group 1
Actions:
Build:
Identifier: aws/build@v1
Configuration:
...
Test:
Identifier: aws/managed-test@v1
Configuration:
Deploy: #Action group 2
Actions:
DeployCloudFormationStack:
Identifier: aws/cfn-deploy@v1
Configuration:
...
DeployToECS:
Identifier: aws/ecs-deploy@v1
Configuration:
...