diff --git a/deployments/buildspec/service.yml b/deployments/buildspec/service.yml index 2737e04..f38d50d 100644 --- a/deployments/buildspec/service.yml +++ b/deployments/buildspec/service.yml @@ -11,4 +11,5 @@ phases: - docker tag $REPO_URI:latest $REPO_URI:$TAG post_build: commands: + - docker push $REPO_URI:latest - docker push $REPO_URI:$TAG diff --git a/deployments/pipeline-services.yml b/deployments/pipeline-services.yml index 82c4872..7118344 100644 --- a/deployments/pipeline-services.yml +++ b/deployments/pipeline-services.yml @@ -290,6 +290,7 @@ Resources: Actions: # Get an image from an ECR repository - Name: Source + Namespace: SourceVariables ActionTypeId: Category: Source Owner: AWS @@ -338,9 +339,7 @@ Resources: ParameterOverrides: !Sub | { "EnvironmentName": "${EnvironmentName}", - "ImageUrl": { - "Fn::GetParam" : ["SourceImage", "imageDetail.json", "ImageURI"] - } + "ImageUrl": "${ServerRepository.RepositoryUri}:#{SourceVariables.ImageDigest}" } InputArtifacts: - Name: SourceImage