1
0
mirror of https://github.com/ebosas/microservices.git synced 2025-06-12 22:17:26 +02:00

Test pipeline [BuildServer]

This commit is contained in:
ebosas
2021-11-09 17:14:42 +02:00
parent f7f0a6ee6d
commit d13f97118d

View File

@ -299,7 +299,7 @@ Resources:
RepositoryName: !Ref ServerRepository RepositoryName: !Ref ServerRepository
ImageTag: latest ImageTag: latest
OutputArtifacts: OutputArtifacts:
- Name: Source - Name: SourceImage
RunOrder: 1 RunOrder: 1
# Get source from a GitHub repository # Get source from a GitHub repository
- Name: Code - Name: Code
@ -315,7 +315,7 @@ Resources:
OAuthToken: !Ref GitHubToken OAuthToken: !Ref GitHubToken
PollForSourceChanges: false PollForSourceChanges: false
OutputArtifacts: OutputArtifacts:
- Name: Code - Name: SourceCode
RunOrder: 1 RunOrder: 1
# Deploy the service to the ECS/Fargate cluster # Deploy the service to the ECS/Fargate cluster
- Name: Deploy - Name: Deploy
@ -330,16 +330,18 @@ Resources:
ActionMode: CREATE_UPDATE ActionMode: CREATE_UPDATE
RoleArn: !GetAtt CloudFormationDeployRole.Arn RoleArn: !GetAtt CloudFormationDeployRole.Arn
StackName: !Sub ${EnvironmentName}-ServerService StackName: !Sub ${EnvironmentName}-ServerService
TemplatePath: !Sub Code::deployments/services-${DeploymentType}/server.yml TemplatePath: !Sub SourceCode::deployments/services-${DeploymentType}/server.yml
Capabilities: CAPABILITY_IAM Capabilities: CAPABILITY_IAM
ParameterOverrides: !Sub | ParameterOverrides: !Sub |
{ {
"EnvironmentName": "${EnvironmentName}", "EnvironmentName": "${EnvironmentName}",
"ImageUrl": "${ServerRepository.RepositoryUri}:latest" "ImageUrl": {
"Fn::GetParam" : ["SourceImage", "imageDetail.json", "ImageURI"]
}
} }
InputArtifacts: InputArtifacts:
- Name: Source - Name: SourceImage
- Name: Code - Name: SourceCode
# A CloudWatch event that will trigger out pipeline when an image is pushed # A CloudWatch event that will trigger out pipeline when an image is pushed
# to the specified ECR repository # to the specified ECR repository