From 21645247fba9461d45fa120dd52a34b467a35cb6 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Wed, 13 Dec 2017 15:54:19 -0500 Subject: [PATCH] fix: scope non-zero return on invalid image to just the deploy command --- plugins/tags/subcommands/deploy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/tags/subcommands/deploy b/plugins/tags/subcommands/deploy index ebd6ec1ac..688777aa2 100755 --- a/plugins/tags/subcommands/deploy +++ b/plugins/tags/subcommands/deploy @@ -10,7 +10,8 @@ tags_deploy_cmd() { local APP="$2"; local IMAGE_TAG="$3" verify_app_name "$APP" - release_and_deploy "$APP" "$IMAGE_TAG" + verify_image "$IMAGE" || return 1 + release_and_deploy "$APP" "$IMAGE_TAG" } tags_deploy_cmd "$@"