1
0
mirror of https://github.com/ebosas/microservices.git synced 2025-08-24 20:08:55 +02:00

Test pipeline

This commit is contained in:
ebosas
2021-11-12 20:22:45 +02:00
parent 89a098b080
commit b268e37285
3 changed files with 10 additions and 5 deletions

View File

@@ -14,5 +14,6 @@ phases:
- docker push $REPO_URI:latest
- docker push $REPO_URI:$TAG
- printf '[{"name":"%s","imageUri":"%s"}]' $SERVICE $REPO_URI:$TAG > imagedefinitions.json
- zip -r $SERVICE.zip imagedefinitions.json
- aws s3 cp $SERVICE.zip s3://$ARTIFACT_BUCKET/imagedefinitions/$SERVICE.zip
artifacts:
files:
- imagedefinitions.json

View File

@@ -322,7 +322,7 @@ Resources:
"EnvironmentName": "${EnvironmentName}",
"ServiceName": "database",
"DeploymentType": "${DeploymentType}",
"TriggerMessagePattern": "[(BuildDatabase|BuildAll)]",
"TriggerMessagePattern": "\\[(BuildDatabase|BuildAll)\\]",
"GitHubRepo": "${GitHubRepo}",
"GitHubBranch": "${GitHubBranch}",
"GitHubToken": "${GitHubToken}",

View File

@@ -59,7 +59,12 @@ Resources:
# DependsOn: SourceCredentials
Properties:
Artifacts:
Type: NO_ARTIFACTS
Type: S3
Location: !Ref ArtifactBucket
Path: imagedefinitions
Name: !Sub ${ServiceName}.zip
Packaging: ZIP
EncryptionDisabled: true
Source:
Type: GITHUB
Location: !Sub https://github.com/${GitHubUser}/${GitHubRepo}.git
@@ -122,7 +127,6 @@ Resources:
# RoleArn: !GetAtt CloudWatchEventRole.Arn
# Id: server-pipeline
# https://docs.aws.amazon.com/codebuild/latest/userguide/sample-build-notifications.html#sample-build-notifications-ref
CloudWatchEventRule:
Type: AWS::Events::Rule
Properties: