Skip to content

Commit

Permalink
fix deploy failure
Browse files Browse the repository at this point in the history
  • Loading branch information
frankinspace committed Dec 17, 2024
1 parent 3b230bb commit 8c4a7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/lambda_functions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ resource null_resource upload_ecr_image {
provisioner "local-exec" {
interpreter = ["/bin/bash", "-e", "-c"]
command = <<EOF
if ! docker images -q ${var.lambda_container_image_uri} > /dev/null; then
if [ -z "$(docker images -q ${var.lambda_container_image_uri} 2> /dev/null)" ]; then
docker pull ${var.lambda_container_image_uri}
fi
docker tag ${var.lambda_container_image_uri} ${aws_ecr_repository.lambda-image-repo.repository_url}:${local.ecr_image_tag}
Expand Down

0 comments on commit 8c4a7e4

Please sign in to comment.