buildspec conditional
- MANIFEST=$(aws ecr batch-get-image --region eu-west-1 --repository-name application-image --image-ids imageTag=latest --query 'images[].imageManifest' --output text)
- |-
if [ -n "$MANIFEST" ]; then
aws ecr put-image --region eu-west-1 --repository-name application-image --image-tag ${IMAGE_TAG} --image-manifest "$MANIFEST"
fi