Allow user to modify the repository and tag when deploying an app

Uses two new plugin triggers:

- deployed-app-repository
- deployed-app-image-tag

Useful when the image is a custom tagged image on a remote repository
This commit is contained in:
Jose Diaz-Gonzalez committed 2016-04-16 08:35:18 -04:00
1 parent 7b8cefbadc
commit d7566daacc
4 files changed
+20 -1

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ dokku_deploy_cmd() {
declare desc="deploy phase"
local cmd="deploy"
[[ -z $2 ]] && dokku_log_fail "Please specify an app to deploy"
local APP="$2"; local IMAGE_TAG="$3"; local IMAGE=$(get_app_image_name "$APP" "$IMAGE_TAG")
local APP="$2"; local IMAGE_TAG="$3"; local IMAGE=$(get_deploying_app_image_name "$APP" "$IMAGE_TAG")
verify_app_name "$APP"
plugn trigger pre-deploy "$APP" "$IMAGE_TAG"