deploy --fast (The Homer Simpson way)

"Like the wrong way, but faster"
This commit is contained in:
3wc 2021-05-30 20:14:41 +02:00
parent e04c5228de
commit a7f7c965c4

243
abra
View File

@ -19,7 +19,7 @@ Usage:
abra [options] app (list|ls) [--status] [--server=<server>] [--type=<type>]
abra [options] app new [--server=<server>] [--domain=<domain>] [--app-name=<app_name>] [--pass] [--secrets] <type>
abra [options] app <app> backup (<service>|--all)
abra [options] app <app> deploy [--update] [--force] [--skip-version-check] [--no-domain-poll] [<version>]
abra [options] app <app> deploy [--update] [--force] [--fast] [--skip-version-check] [--no-domain-poll] [<version>]
abra [options] app <app> check
abra [options] app <app> version
abra [options] app <app> config
@ -165,100 +165,101 @@ eval "var_$1+=($value)"; else eval "var_$1=$value"; fi; return 0; fi; done
return 1; }; stdout() { printf -- "cat <<'EOM'\n%s\nEOM\n" "$1"; }; stderr() {
printf -- "cat <<'EOM' >&2\n%s\nEOM\n" "$1"; }; error() {
[[ -n $1 ]] && stderr "$1"; stderr "$usage"; _return 1; }; _return() {
printf -- "exit %d\n" "$1"; exit "$1"; }; set -e; trimmed_doc=${DOC:1:2365}
usage=${DOC:40:1756}; digest=de09c
shorts=(-s -b -d -C -e -n -h -v -U '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '')
longs=(--stack --branch --debug --skip-check --env --no-prompt --help --verbose --skip-update --status --server --type --domain --app-name --pass --secrets --all --update --force --skip-version-check --no-domain-poll --volumes --no-tty --user --dev)
argcounts=(1 1 0 0 1 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 1 0); node_0(){
value __stack 0; }; node_1(){ value __branch 1; }; node_2(){ switch __debug 2; }
node_3(){ switch __skip_check 3; }; node_4(){ value __env 4; }; node_5(){
switch __no_prompt 5; }; node_6(){ switch __help 6; }; node_7(){
switch __verbose 7; }; node_8(){ switch __skip_update 8; }; node_9(){
printf -- "exit %d\n" "$1"; exit "$1"; }; set -e; trimmed_doc=${DOC:1:2374}
usage=${DOC:40:1765}; digest=a8b0a
shorts=(-C -v -h -s -e -U -n -d -b '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '' '')
longs=(--skip-check --verbose --help --stack --env --skip-update --no-prompt --debug --branch --status --server --type --domain --app-name --pass --secrets --all --update --force --fast --skip-version-check --no-domain-poll --volumes --no-tty --user --dev)
argcounts=(0 0 0 1 1 0 0 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 1 0); node_0(){
switch __skip_check 0; }; node_1(){ switch __verbose 1; }; node_2(){
switch __help 2; }; node_3(){ value __stack 3; }; node_4(){ value __env 4; }
node_5(){ switch __skip_update 5; }; node_6(){ switch __no_prompt 6; }
node_7(){ switch __debug 7; }; node_8(){ value __branch 8; }; node_9(){
switch __status 9; }; node_10(){ value __server 10; }; node_11(){
value __type 11; }; node_12(){ value __domain 12; }; node_13(){
value __app_name 13; }; node_14(){ switch __pass 14; }; node_15(){
switch __secrets 15; }; node_16(){ switch __all 16; }; node_17(){
switch __update 17; }; node_18(){ switch __force 18; }; node_19(){
switch __skip_version_check 19; }; node_20(){ switch __no_domain_poll 20; }
node_21(){ switch __volumes 21; }; node_22(){ switch __no_tty 22; }; node_23(){
value __user 23; }; node_24(){ switch __dev 24; }; node_25(){ value _type_ a; }
node_26(){ value _app_ a; }; node_27(){ value _service_ a; }; node_28(){
value _version_ a; }; node_29(){ value _src_ a; }; node_30(){ value _dst_ a; }
node_31(){ value _backup_file_ a; }; node_32(){ value _args_ a true; }
node_33(){ value _secret_ a; }; node_34(){ value _cmd_ a; }; node_35(){
value _data_ a; }; node_36(){ value _command_ a; }; node_37(){ value _recipe_ a
}; node_38(){ value _host_ a; }; node_39(){ value _user_ a; }; node_40(){
value _port_ a; }; node_41(){ value _provider_ a; }; node_42(){
value _subcommands_ a true; }; node_43(){ _command app; }; node_44(){
_command list; }; node_45(){ _command ls; }; node_46(){ _command new; }
node_47(){ _command backup; }; node_48(){ _command deploy; }; node_49(){
_command check; }; node_50(){ _command version; }; node_51(){ _command config; }
node_52(){ _command cp; }; node_53(){ _command logs; }; node_54(){ _command ps
}; node_55(){ _command restore; }; node_56(){ _command rm; }; node_57(){
_command delete; }; node_58(){ _command run; }; node_59(){ _command rollback; }
node_60(){ _command secret; }; node_61(){ _command generate; }; node_62(){
_command insert; }; node_63(){ _command undeploy; }; node_64(){ _command recipe
}; node_65(){ _command create; }; node_66(){ _command release; }; node_67(){
_command versions; }; node_68(){ _command server; }; node_69(){ _command add; }
node_70(){ _command __ --; }; node_71(){ _command init; }; node_72(){
_command apps; }; node_73(){ _command upgrade; }; node_74(){ _command doctor; }
node_75(){ _command help; }; node_76(){ optional 0 1 2 3 4 5 6 7 8; }
node_77(){ optional 76; }; node_78(){ either 44 45; }; node_79(){ required 78; }
node_80(){ optional 9; }; node_81(){ optional 10; }; node_82(){ optional 11; }
node_83(){ required 77 43 79 80 81 82; }; node_84(){ optional 12; }; node_85(){
optional 13; }; node_86(){ optional 14; }; node_87(){ optional 15; }; node_88(){
required 77 43 46 81 84 85 86 87 25; }; node_89(){ either 27 16; }; node_90(){
required 89; }; node_91(){ required 77 43 26 47 90; }; node_92(){ optional 17; }
node_93(){ optional 18; }; node_94(){ optional 19; }; node_95(){ optional 20; }
node_96(){ optional 28; }; node_97(){ required 77 43 26 48 92 93 94 95 96; }
node_98(){ required 77 43 26 49; }; node_99(){ required 77 43 26 50; }
node_100(){ required 77 43 26 51; }; node_101(){ required 77 43 26 52 29 30; }
node_102(){ optional 27; }; node_103(){ required 77 43 26 53 102; }; node_104(){
required 77 43 26 54; }; node_105(){ required 77 43 26 55 90; }; node_106(){
either 56 57; }; node_107(){ required 106; }; node_108(){ optional 21; }
node_109(){ required 77 43 26 107 108 87; }; node_110(){ optional 31; }
node_111(){ required 77 43 26 55 27 110; }; node_112(){ optional 22; }
node_113(){ optional 23; }; node_114(){ oneormore 32; }; node_115(){
required 77 43 26 58 112 113 27 114; }; node_116(){ required 77 43 26 59 96; }
node_117(){ required 33 28; }; node_118(){ either 117 16; }; node_119(){
required 118; }; node_120(){ optional 34; }; node_121(){
required 77 43 26 60 61 119 120 86; }; node_122(){
required 77 43 26 60 62 33 28 35 86; }; node_123(){ either 33 16; }; node_124(){
required 123; }; node_125(){ required 77 43 26 60 107 124 86; }; node_126(){
required 77 43 26 63; }; node_127(){ optional 114; }; node_128(){
required 77 43 26 36 127; }; node_129(){ required 77 64 45; }; node_130(){
required 77 64 65 37; }; node_131(){ required 77 64 37 66 93; }; node_132(){
required 77 64 37 67; }; node_133(){ optional 39; }; node_134(){ optional 40; }
node_135(){ required 77 68 69 38 133 134; }; node_136(){
required 77 68 46 41 70 32; }; node_137(){ required 77 68 79; }; node_138(){
required 77 68 38 56; }; node_139(){ required 77 68 38 71; }; node_140(){
required 77 68 38 72 80; }; node_141(){ optional 24; }; node_142(){
required 77 73 141; }; node_143(){ required 77 50; }; node_144(){ required 77 74
}; node_145(){ oneormore 42; }; node_146(){ optional 145; }; node_147(){
required 77 75 146; }; node_148(){ required 77; }; node_149(){
either 83 88 91 97 98 99 100 101 103 104 105 109 111 115 116 121 122 125 126 128 129 130 131 132 135 136 137 138 139 140 142 143 144 147 148
}; node_150(){ required 149; }; cat <<<' docopt_exit() {
[[ -n $1 ]] && printf "%s\n" "$1" >&2; printf "%s\n" "${DOC:40:1756}" >&2
exit 1; }'; unset var___stack var___branch var___debug var___skip_check \
var___env var___no_prompt var___help var___verbose var___skip_update \
switch __fast 19; }; node_20(){ switch __skip_version_check 20; }; node_21(){
switch __no_domain_poll 21; }; node_22(){ switch __volumes 22; }; node_23(){
switch __no_tty 23; }; node_24(){ value __user 24; }; node_25(){ switch __dev 25
}; node_26(){ value _type_ a; }; node_27(){ value _app_ a; }; node_28(){
value _service_ a; }; node_29(){ value _version_ a; }; node_30(){ value _src_ a
}; node_31(){ value _dst_ a; }; node_32(){ value _backup_file_ a; }; node_33(){
value _args_ a true; }; node_34(){ value _secret_ a; }; node_35(){ value _cmd_ a
}; node_36(){ value _data_ a; }; node_37(){ value _command_ a; }; node_38(){
value _recipe_ a; }; node_39(){ value _host_ a; }; node_40(){ value _user_ a; }
node_41(){ value _port_ a; }; node_42(){ value _provider_ a; }; node_43(){
value _subcommands_ a true; }; node_44(){ _command app; }; node_45(){
_command list; }; node_46(){ _command ls; }; node_47(){ _command new; }
node_48(){ _command backup; }; node_49(){ _command deploy; }; node_50(){
_command check; }; node_51(){ _command version; }; node_52(){ _command config; }
node_53(){ _command cp; }; node_54(){ _command logs; }; node_55(){ _command ps
}; node_56(){ _command restore; }; node_57(){ _command rm; }; node_58(){
_command delete; }; node_59(){ _command run; }; node_60(){ _command rollback; }
node_61(){ _command secret; }; node_62(){ _command generate; }; node_63(){
_command insert; }; node_64(){ _command undeploy; }; node_65(){ _command recipe
}; node_66(){ _command create; }; node_67(){ _command release; }; node_68(){
_command versions; }; node_69(){ _command server; }; node_70(){ _command add; }
node_71(){ _command __ --; }; node_72(){ _command init; }; node_73(){
_command apps; }; node_74(){ _command upgrade; }; node_75(){ _command doctor; }
node_76(){ _command help; }; node_77(){ optional 0 1 2 3 4 5 6 7 8; }
node_78(){ optional 77; }; node_79(){ either 45 46; }; node_80(){ required 79; }
node_81(){ optional 9; }; node_82(){ optional 10; }; node_83(){ optional 11; }
node_84(){ required 78 44 80 81 82 83; }; node_85(){ optional 12; }; node_86(){
optional 13; }; node_87(){ optional 14; }; node_88(){ optional 15; }; node_89(){
required 78 44 47 82 85 86 87 88 26; }; node_90(){ either 28 16; }; node_91(){
required 90; }; node_92(){ required 78 44 27 48 91; }; node_93(){ optional 17; }
node_94(){ optional 18; }; node_95(){ optional 19; }; node_96(){ optional 20; }
node_97(){ optional 21; }; node_98(){ optional 29; }; node_99(){
required 78 44 27 49 93 94 95 96 97 98; }; node_100(){ required 78 44 27 50; }
node_101(){ required 78 44 27 51; }; node_102(){ required 78 44 27 52; }
node_103(){ required 78 44 27 53 30 31; }; node_104(){ optional 28; }
node_105(){ required 78 44 27 54 104; }; node_106(){ required 78 44 27 55; }
node_107(){ required 78 44 27 56 91; }; node_108(){ either 57 58; }; node_109(){
required 108; }; node_110(){ optional 22; }; node_111(){
required 78 44 27 109 110 88; }; node_112(){ optional 32; }; node_113(){
required 78 44 27 56 28 112; }; node_114(){ optional 23; }; node_115(){
optional 24; }; node_116(){ oneormore 33; }; node_117(){
required 78 44 27 59 114 115 28 116; }; node_118(){ required 78 44 27 60 98; }
node_119(){ required 34 29; }; node_120(){ either 119 16; }; node_121(){
required 120; }; node_122(){ optional 35; }; node_123(){
required 78 44 27 61 62 121 122 87; }; node_124(){
required 78 44 27 61 63 34 29 36 87; }; node_125(){ either 34 16; }; node_126(){
required 125; }; node_127(){ required 78 44 27 61 109 126 87; }; node_128(){
required 78 44 27 64; }; node_129(){ optional 116; }; node_130(){
required 78 44 27 37 129; }; node_131(){ required 78 65 46; }; node_132(){
required 78 65 66 38; }; node_133(){ required 78 65 38 67 94; }; node_134(){
required 78 65 38 68; }; node_135(){ optional 40; }; node_136(){ optional 41; }
node_137(){ required 78 69 70 39 135 136; }; node_138(){
required 78 69 47 42 71 33; }; node_139(){ required 78 69 80; }; node_140(){
required 78 69 39 57; }; node_141(){ required 78 69 39 72; }; node_142(){
required 78 69 39 73 81; }; node_143(){ optional 25; }; node_144(){
required 78 74 143; }; node_145(){ required 78 51; }; node_146(){ required 78 75
}; node_147(){ oneormore 43; }; node_148(){ optional 147; }; node_149(){
required 78 76 148; }; node_150(){ required 78; }; node_151(){
either 84 89 92 99 100 101 102 103 105 106 107 111 113 117 118 123 124 127 128 130 131 132 133 134 137 138 139 140 141 142 144 145 146 149 150
}; node_152(){ required 151; }; cat <<<' docopt_exit() {
[[ -n $1 ]] && printf "%s\n" "$1" >&2; printf "%s\n" "${DOC:40:1765}" >&2
exit 1; }'; unset var___skip_check var___verbose var___help var___stack \
var___env var___skip_update var___no_prompt var___debug var___branch \
var___status var___server var___type var___domain var___app_name var___pass \
var___secrets var___all var___update var___force var___skip_version_check \
var___no_domain_poll var___volumes var___no_tty var___user var___dev \
var__type_ var__app_ var__service_ var__version_ var__src_ var__dst_ \
var__backup_file_ var__args_ var__secret_ var__cmd_ var__data_ var__command_ \
var__recipe_ var__host_ var__user_ var__port_ var__provider_ var__subcommands_ \
var_app var_list var_ls var_new var_backup var_deploy var_check var_version \
var_config var_cp var_logs var_ps var_restore var_rm var_delete var_run \
var_rollback var_secret var_generate var_insert var_undeploy var_recipe \
var_create var_release var_versions var_server var_add var___ var_init \
var_apps var_upgrade var_doctor var_help; parse 150 "$@"
local prefix=${DOCOPT_PREFIX:-''}; unset "${prefix}__stack" \
"${prefix}__branch" "${prefix}__debug" "${prefix}__skip_check" \
"${prefix}__env" "${prefix}__no_prompt" "${prefix}__help" "${prefix}__verbose" \
"${prefix}__skip_update" "${prefix}__status" "${prefix}__server" \
"${prefix}__type" "${prefix}__domain" "${prefix}__app_name" "${prefix}__pass" \
var___secrets var___all var___update var___force var___fast \
var___skip_version_check var___no_domain_poll var___volumes var___no_tty \
var___user var___dev var__type_ var__app_ var__service_ var__version_ \
var__src_ var__dst_ var__backup_file_ var__args_ var__secret_ var__cmd_ \
var__data_ var__command_ var__recipe_ var__host_ var__user_ var__port_ \
var__provider_ var__subcommands_ var_app var_list var_ls var_new var_backup \
var_deploy var_check var_version var_config var_cp var_logs var_ps var_restore \
var_rm var_delete var_run var_rollback var_secret var_generate var_insert \
var_undeploy var_recipe var_create var_release var_versions var_server var_add \
var___ var_init var_apps var_upgrade var_doctor var_help; parse 152 "$@"
local prefix=${DOCOPT_PREFIX:-''}; unset "${prefix}__skip_check" \
"${prefix}__verbose" "${prefix}__help" "${prefix}__stack" "${prefix}__env" \
"${prefix}__skip_update" "${prefix}__no_prompt" "${prefix}__debug" \
"${prefix}__branch" "${prefix}__status" "${prefix}__server" "${prefix}__type" \
"${prefix}__domain" "${prefix}__app_name" "${prefix}__pass" \
"${prefix}__secrets" "${prefix}__all" "${prefix}__update" "${prefix}__force" \
"${prefix}__skip_version_check" "${prefix}__no_domain_poll" \
"${prefix}__fast" "${prefix}__skip_version_check" "${prefix}__no_domain_poll" \
"${prefix}__volumes" "${prefix}__no_tty" "${prefix}__user" "${prefix}__dev" \
"${prefix}_type_" "${prefix}_app_" "${prefix}_service_" "${prefix}_version_" \
"${prefix}_src_" "${prefix}_dst_" "${prefix}_backup_file_" "${prefix}_args_" \
@ -273,15 +274,15 @@ local prefix=${DOCOPT_PREFIX:-''}; unset "${prefix}__stack" \
"${prefix}create" "${prefix}release" "${prefix}versions" "${prefix}server" \
"${prefix}add" "${prefix}__" "${prefix}init" "${prefix}apps" \
"${prefix}upgrade" "${prefix}doctor" "${prefix}help"
eval "${prefix}"'__stack=${var___stack:-}'
eval "${prefix}"'__branch=${var___branch:-}'
eval "${prefix}"'__debug=${var___debug:-false}'
eval "${prefix}"'__skip_check=${var___skip_check:-false}'
eval "${prefix}"'__env=${var___env:-}'
eval "${prefix}"'__no_prompt=${var___no_prompt:-false}'
eval "${prefix}"'__help=${var___help:-false}'
eval "${prefix}"'__verbose=${var___verbose:-false}'
eval "${prefix}"'__help=${var___help:-false}'
eval "${prefix}"'__stack=${var___stack:-}'
eval "${prefix}"'__env=${var___env:-}'
eval "${prefix}"'__skip_update=${var___skip_update:-false}'
eval "${prefix}"'__no_prompt=${var___no_prompt:-false}'
eval "${prefix}"'__debug=${var___debug:-false}'
eval "${prefix}"'__branch=${var___branch:-}'
eval "${prefix}"'__status=${var___status:-false}'
eval "${prefix}"'__server=${var___server:-}'
eval "${prefix}"'__type=${var___type:-}'
@ -292,6 +293,7 @@ eval "${prefix}"'__secrets=${var___secrets:-false}'
eval "${prefix}"'__all=${var___all:-false}'
eval "${prefix}"'__update=${var___update:-false}'
eval "${prefix}"'__force=${var___force:-false}'
eval "${prefix}"'__fast=${var___fast:-false}'
eval "${prefix}"'__skip_version_check=${var___skip_version_check:-false}'
eval "${prefix}"'__no_domain_poll=${var___no_domain_poll:-false}'
eval "${prefix}"'__volumes=${var___volumes:-false}'
@ -346,27 +348,27 @@ eval "${prefix}"'upgrade=${var_upgrade:-false}'
eval "${prefix}"'doctor=${var_doctor:-false}'
eval "${prefix}"'help=${var_help:-false}'; local docopt_i=1
[[ $BASH_VERSION =~ ^4.3 ]] && docopt_i=2; for ((;docopt_i>0;docopt_i--)); do
declare -p "${prefix}__stack" "${prefix}__branch" "${prefix}__debug" \
"${prefix}__skip_check" "${prefix}__env" "${prefix}__no_prompt" \
"${prefix}__help" "${prefix}__verbose" "${prefix}__skip_update" \
declare -p "${prefix}__skip_check" "${prefix}__verbose" "${prefix}__help" \
"${prefix}__stack" "${prefix}__env" "${prefix}__skip_update" \
"${prefix}__no_prompt" "${prefix}__debug" "${prefix}__branch" \
"${prefix}__status" "${prefix}__server" "${prefix}__type" "${prefix}__domain" \
"${prefix}__app_name" "${prefix}__pass" "${prefix}__secrets" "${prefix}__all" \
"${prefix}__update" "${prefix}__force" "${prefix}__skip_version_check" \
"${prefix}__no_domain_poll" "${prefix}__volumes" "${prefix}__no_tty" \
"${prefix}__user" "${prefix}__dev" "${prefix}_type_" "${prefix}_app_" \
"${prefix}_service_" "${prefix}_version_" "${prefix}_src_" "${prefix}_dst_" \
"${prefix}_backup_file_" "${prefix}_args_" "${prefix}_secret_" \
"${prefix}_cmd_" "${prefix}_data_" "${prefix}_command_" "${prefix}_recipe_" \
"${prefix}_host_" "${prefix}_user_" "${prefix}_port_" "${prefix}_provider_" \
"${prefix}_subcommands_" "${prefix}app" "${prefix}list" "${prefix}ls" \
"${prefix}new" "${prefix}backup" "${prefix}deploy" "${prefix}check" \
"${prefix}version" "${prefix}config" "${prefix}cp" "${prefix}logs" \
"${prefix}ps" "${prefix}restore" "${prefix}rm" "${prefix}delete" \
"${prefix}run" "${prefix}rollback" "${prefix}secret" "${prefix}generate" \
"${prefix}insert" "${prefix}undeploy" "${prefix}recipe" "${prefix}create" \
"${prefix}release" "${prefix}versions" "${prefix}server" "${prefix}add" \
"${prefix}__" "${prefix}init" "${prefix}apps" "${prefix}upgrade" \
"${prefix}doctor" "${prefix}help"; done; }
"${prefix}__update" "${prefix}__force" "${prefix}__fast" \
"${prefix}__skip_version_check" "${prefix}__no_domain_poll" \
"${prefix}__volumes" "${prefix}__no_tty" "${prefix}__user" "${prefix}__dev" \
"${prefix}_type_" "${prefix}_app_" "${prefix}_service_" "${prefix}_version_" \
"${prefix}_src_" "${prefix}_dst_" "${prefix}_backup_file_" "${prefix}_args_" \
"${prefix}_secret_" "${prefix}_cmd_" "${prefix}_data_" "${prefix}_command_" \
"${prefix}_recipe_" "${prefix}_host_" "${prefix}_user_" "${prefix}_port_" \
"${prefix}_provider_" "${prefix}_subcommands_" "${prefix}app" "${prefix}list" \
"${prefix}ls" "${prefix}new" "${prefix}backup" "${prefix}deploy" \
"${prefix}check" "${prefix}version" "${prefix}config" "${prefix}cp" \
"${prefix}logs" "${prefix}ps" "${prefix}restore" "${prefix}rm" \
"${prefix}delete" "${prefix}run" "${prefix}rollback" "${prefix}secret" \
"${prefix}generate" "${prefix}insert" "${prefix}undeploy" "${prefix}recipe" \
"${prefix}create" "${prefix}release" "${prefix}versions" "${prefix}server" \
"${prefix}add" "${prefix}__" "${prefix}init" "${prefix}apps" \
"${prefix}upgrade" "${prefix}doctor" "${prefix}help"; done; }
# docopt parser above, complete command for generating this parser is `docopt.sh abra`
PROGRAM_NAME=$(basename "$0")
@ -1288,7 +1290,7 @@ _abra_backup_mysql() {
###### .. app deploy
help_app_deploy (){
echo "abra [options] app <app> deploy [--update] [--force] [--skip-version-check] [--no-domain-poll]
echo "abra [options] app <app> deploy [--update] [--force] [--fast] [--skip-version-check] [--no-domain-poll]
Deploy app <app> to the configured server.
@ -1297,6 +1299,7 @@ OPTIONS
--force Force a deployment regardless of state
--skip-version-check Don't try and detect deployed version
--no-domain-poll Don't wait for the configured domain to come up
--fast Alias for --skip-version-check --no-domain-poll
POWERED BY
docker stack deploy -c compose.yml <app>"
@ -1305,8 +1308,13 @@ POWERED BY
sub_app_deploy (){
require_yq
if [ "$abra___fast" = "true" ]; then
SKIP_VERSION_CHECK=true
NO_DOMAIN_POLL=true
else
SKIP_VERSION_CHECK=$abra___skip_version_check
NO_DOMAIN_POLL=$abra___no_domain_poll
fi
if [ ! "$abra__version_" = "dev" ]; then
get_recipe_versions "$TYPE"
@ -1356,6 +1364,10 @@ sub_app_deploy (){
(cd "$APP_DIR" || error "\$APP_DIR '$APP_DIR' not found")
# shellcheck disable=SC2086
if (cd "$APP_DIR" && docker stack deploy -c ${COMPOSE_FILE//:/ -c } "$STACK_NAME"); then
if [ "$abra___fast" = "true" ]; then
success "Something happened! Hope it was good 🙏"
exit 0
fi
ensure_stack_deployed "$STACK_NAME"
if [ -n "$DOMAIN" ]; then
if [[ $NO_DOMAIN_POLL == "false" ]]; then
@ -2412,7 +2424,8 @@ abra() {
abra___skip_check abra__backup_file_ abra___verbose abra___debug \
abra___help abra___branch abra___volumes abra__provider_ abra___type \
abra___dev abra___update abra___no_prompt abra___force \
abra___skip_version_check abra__recipe_ abra___no_domain_poll
abra___skip_version_check abra__recipe_ abra___no_domain_poll \
abra___fast
if ! type tput > /dev/null 2>&1; then
tput() {