fix: pass along failed build status when building from image

This commit is contained in:
Jose Diaz-Gonzalez
2022-04-16 02:44:51 -04:00
parent ba7c685e11
commit 49d08a8fb6
2 changed files with 7 additions and 3 deletions

View File

@@ -110,7 +110,9 @@ cmd-git-from-image() {
verify_app_name "$APP"
[[ -z "$DOCKER_IMAGE" ]] && dokku_log_fail "Please specify a docker image"
plugn trigger git-from-image "$APP" "$DOCKER_IMAGE" "$BUILD_DIR" "$USER_NAME" "$USER_EMAIL"
if ! plugn trigger git-from-image "$APP" "$DOCKER_IMAGE" "$BUILD_DIR" "$USER_NAME" "$USER_EMAIL"; then
return 1
fi
plugn trigger deploy-source-set "$APP" "docker-image" "$DOCKER_IMAGE"
}