Merge pull request #3358 from dokku/3355-tags-deploys

Image tag deploy workflow cleanup
This commit is contained in:
Jose Diaz-Gonzalez
2018-12-28 23:41:01 -05:00
committed by GitHub
4 changed files with 16 additions and 4 deletions

View File

@@ -12,7 +12,13 @@ tags_deploy_cmd() {
IMAGE="$(get_app_image_name "$APP" "$IMAGE_TAG")"
verify_image "$IMAGE" || return 1
release_and_deploy "$APP" "$IMAGE_TAG"
release_and_deploy "$APP" "$IMAGE_TAG"
if [[ "$IMAGE_TAG" != "latest" ]]; then
local DOKKU_SCHEDULER="$(get_app_scheduler "$APP")"
local LATEST_IMAGE="$(get_app_image_name "$APP")"
plugn trigger scheduler-tags-create "$DOKKU_SCHEDULER" "$APP" "$IMAGE" "$LATEST_IMAGE"
fi
}
tags_deploy_cmd "$@"

View File

@@ -10,8 +10,8 @@ tar_deploy_source() {
# bail if another source is detected
if [[ -n "$STDIN" ]]; then
echo "$STDIN"
return
echo "$STDIN"
return
fi
if [[ -f "$DOKKU_ROOT/$APP/src.tar" ]]; then