message: move to after subfolder CD and test for .lagoon.yml file
diff: @@ -18,14 +18,6 @@ else
  /oc-build-deploy/scripts/git-checkout-pull.sh "$SOURCE_REPOSITORY" "$GIT_REF"
  fi
  -INJECT_GIT_SHA=$(cat .lagoon.yml | shyaml get-value environment_variables.git_sha false)
  -if [ "$INJECT_GIT_SHA" == "true" ]
  -then
  - LAGOON_GIT_SHA=`git rev-parse HEAD`
  -else
  - LAGOON_GIT_SHA="0000000000000000"
  -fi
  -
  if [[ -n "$SUBFOLDER" ]]; then
  cd $SUBFOLDER
  fi
  @@ -34,6 +26,14 @@ if [ ! -f .lagoon.yml ]; then
  echo "no .lagoon.yml file found"; exit 1;
  fi
  +INJECT_GIT_SHA=$(cat .lagoon.yml | shyaml get-value environment_variables.git_sha false)
  +if [ "$INJECT_GIT_SHA" == "true" ]
  +then
  + LAGOON_GIT_SHA=`git rev-parse HEAD`
  +else
  + LAGOON_GIT_SHA="0000000000000000"
  +fi
  +
  DOCKER_REGISTRY_TOKEN=$(cat /var/run/secrets/kubernetes.io/serviceaccount/token)
  docker login -u=jenkins -p="${DOCKER_REGISTRY_TOKEN}" ${OPENSHIFT_REGISTRY}
  