Skip to content

Commit ae5f30a

Browse files
committed
fix(builder): add status messages
Without these messages, the user may have to wait for a while before the builder pod spins up and the slug runner spins up (respectively)
1 parent daac4b8 commit ae5f30a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rootfs/etc/confd/templates/builder

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ $MC_PREFIX config host add "$HTTP_PREFIX://$S3EP" $ACCESS_KEY $ACCESS_SECRET &>/
133133
$MC_PREFIX mb "$HTTP_PREFIX://${S3EP}/git" &>/dev/null
134134
$MC_PREFIX cp ${APP_NAME}.tar.gz $TAR_URL &>/dev/null
135135

136+
puts-step "Starting build"
136137
kubectl --namespace=${POD_NAMESPACE} create -f /etc/${SLUG_NAME}.yaml >/dev/null
137138

138139
# wait for pod to be running and then pull its logs
@@ -159,6 +160,9 @@ fi
159160

160161
# build completed
161162

163+
puts-step "Build complete."
164+
puts-step "Launching app."
165+
162166
URL="http://$DEIS_WORKFLOW_SERVICE_HOST:$DEIS_WORKFLOW_SERVICE_PORT/v2/hooks/config"
163167
RESPONSE=$(get-app-config -url="$URL" -key="{{ getv "/deis/controller/builderKey" }}" -user=$USER -app=$APP_NAME)
164168
CODE=$?

0 commit comments

Comments
 (0)