You've already forked microservices
mirror of
https://github.com/ebosas/microservices.git
synced 2025-08-24 20:08:55 +02:00
Test pipeline
This commit is contained in:
@@ -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
|
@@ -322,7 +322,7 @@ Resources:
|
||||
"EnvironmentName": "${EnvironmentName}",
|
||||
"ServiceName": "database",
|
||||
"DeploymentType": "${DeploymentType}",
|
||||
"TriggerMessagePattern": "[(BuildDatabase|BuildAll)]",
|
||||
"TriggerMessagePattern": "\\[(BuildDatabase|BuildAll)\\]",
|
||||
"GitHubRepo": "${GitHubRepo}",
|
||||
"GitHubBranch": "${GitHubBranch}",
|
||||
"GitHubToken": "${GitHubToken}",
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user