File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 55export LAGOON_BUILD_NAME=$HOSTNAME
66
77BUILD_WARNING_COUNT=0
8+ IMAGE_BUILD_PUSH_COMPLETE=" false"
89
910function cronScheduleMoreOftenThan30Minutes() {
1011 # takes a unexpanded cron schedule, returns 0 if it's more often that 30 minutes
@@ -150,7 +151,7 @@ function beginBuildStep() {
150151 # patch the buildpod with the buildstep
151152 if [ " ${SCC_CHECK} " == false ]; then
152153 kubectl patch -n ${NAMESPACE} pod ${LAGOON_BUILD_NAME} \
153- -p " {\" metadata\" :{\" labels\" :{\" lagoon.sh/buildStep\" :\" ${2} \" }}}" & > /dev/null
154+ -p " {\" metadata\" :{\" labels\" :{\" lagoon.sh/buildStep\" :\" ${2} \" , \" build.lagoon.sh/images-complete \" : \" ${IMAGE_BUILD_PUSH_COMPLETE} \" }}}" & > /dev/null
154155 # tiny sleep to allow patch to complete before logs roll again
155156 sleep 0.5s
156157 fi
@@ -967,6 +968,9 @@ if [ "${DEPRECATED_IMAGE_WARNINGS}" == "true" ]; then
967968 finalizeBuildStep " ${buildStartTime} " " ${previousStepEnd} " " ${currentStepEnd} " " ${NAMESPACE} " " deprecatedImagesComplete" " Deprecated Image Warnings" " true"
968969fi
969970
971+ # set that the image build and push phase has ended
972+ IMAGE_BUILD_PUSH_COMPLETE=" true"
973+
970974previousStepEnd=${currentStepEnd}
971975beginBuildStep " Service Configuration Phase" " serviceConfigurationPhase"
972976
You can’t perform that action at this time.
0 commit comments