Skip to content

Commit

Permalink
wip: Allows to execute before/after hooks when deploying a service #204
Browse files Browse the repository at this point in the history
… [sip ci]
  • Loading branch information
Christophe Nouguier committed Dec 7, 2020
1 parent 430c95e commit 1f2b63d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
File renamed without changes.
5 changes: 3 additions & 2 deletions kargo
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ kargo_exec()

kargo_deploy()
{
pushd .kargo > /dev/null
kargo_check_stack deploy $1
#kargo_check_network $DOCKER_SOCKET_NETWORK
kargo_check_network $DOCKER_FRONT_NETWORK
Expand All @@ -359,6 +358,7 @@ kargo_deploy()
local STACK=${!STACK_NAME}
local SERVICES_TO_DEPLOY=
local AFTER_HOOKS_TO_RUN=
pushd .kargo > /dev/null
for SERVICE in $STACK; do
echo initializing service $SERVICE
SERVICES_TO_DEPLOY="$SERVICES_TO_DEPLOY -c deploy/$SERVICE.yml"
Expand Down Expand Up @@ -387,8 +387,9 @@ kargo_deploy()
for AFTER_HOOK in $AFTER_HOOKS_TO_RUN; do
source deploy/$AFTER_HOOK
done
popd > /dev/null
fi
popd > /dev/null

}

kargo_redeploy()
Expand Down

0 comments on commit 1f2b63d

Please sign in to comment.