message: move push images above creation of deployments
  as with statefulsets we need the images already existing before creating the statefulset
diff: @@ -235,6 +235,26 @@ if [ "$TYPE" == "pullrequest" ]; then
  -p "{\"data\":{\"LAGOON_PR_HEAD_BRANCH\":\"${PR_HEAD_BRANCH}\", \"LAGOON_PR_BASE_BRANCH\":\"${PR_BASE_BRANCH}\", \"LAGOON_PR_TITLE\":\"${PR_TITLE}\"}}"
  fi
  +##############################################
  +### PUSH IMAGES TO OPENSHIFT REGISTRY
  +##############################################
  +
  +if [ "$TYPE" == "pullrequest" ] || [ "$TYPE" == "branch" ]; then
  + for IMAGE_NAME in "${IMAGES[@]}"
  + do
  + # Before the push the temporary name is resolved to the future tag with the registry in the image name
  + TEMPORARY_IMAGE_NAME="${OPENSHIFT_PROJECT}-${IMAGE_NAME}"
  + . /scripts/exec-push.sh
  + done
  +elif [ "$TYPE" == "promote" ]; then
  +
  + for IMAGE_NAME in "${IMAGES[@]}"
  + do
  + . /scripts/exec-openshift-tag.sh
  + done
  +
  +fi
  +
  ##############################################
  ### CREATE PVC, DEPLOYMENTS AND CRONJOBS
  ##############################################
  @@ -343,27 +363,6 @@ do
  done
  -##############################################
  -### PUSH IMAGES TO OPENSHIFT REGISTRY
  -##############################################
  -
  -if [ "$TYPE" == "pullrequest" ] || [ "$TYPE" == "branch" ]; then
  - for IMAGE_NAME in "${IMAGES[@]}"
  - do
  - # Before the push the temporary name is resolved to the future tag with the registry in the image name
  - TEMPORARY_IMAGE_NAME="${OPENSHIFT_PROJECT}-${IMAGE_NAME}"
  - . /scripts/exec-push.sh
  - done
  -elif [ "$TYPE" == "promote" ]; then
  -
  - for IMAGE_NAME in "${IMAGES[@]}"
  - do
  - . /scripts/exec-openshift-tag.sh
  - done
  -
  -fi
  -
  -
  ##############################################
  ### WAIT FOR POST-ROLLOUT TO BE FINISHED
  ##############################################
  