refactor: extract release_and_deploy calls to a plugin trigger
Better would be to separate the release and deploy aspects into distinct triggers - as well as have it release a specific image - but this is a good first pass.
This commit is contained in:
committed by
Jose Diaz-Gonzalez
parent
1b4559c4a4
commit
696df45306
@@ -634,7 +634,7 @@ dokku_receive() {
|
||||
dokku_log_info1 "Building $APP from $IMAGE_SOURCE_TYPE..."
|
||||
DOKKU_QUIET_OUTPUT=1 config_set --no-restart "$APP" DOKKU_APP_TYPE="$IMAGE_SOURCE_TYPE"
|
||||
dokku_build "$APP" "$IMAGE_SOURCE_TYPE" "$TMP_WORK_DIR"
|
||||
release_and_deploy "$APP"
|
||||
plugn trigger release-and-deploy "$APP"
|
||||
}
|
||||
|
||||
docker_cleanup() {
|
||||
|
||||
6
plugins/common/release-and-deploy
Executable file
6
plugins/common/release-and-deploy
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
source "$PLUGIN_CORE_AVAILABLE_PATH/common/functions"
|
||||
set -eo pipefail
|
||||
[[ $DOKKU_TRACE ]] && set -x
|
||||
|
||||
release_and_deploy "$@"
|
||||
Reference in New Issue
Block a user