message: using docker daemon instead of registry
diff: # Image config
  IMAGE_TAG="${IMAGE_TAG:-latest}"
  -REGISTRY_IMAGE_FULL="docker:${REGISTRY}/${PROJECT}/${ENVIRONMENT}/${IMAGE_NAME}:${IMAGE_TAG}"
  +IMAGE_FULL="docker:${PROJECT}/${IMAGE_NAME}:${IMAGE_TAG}"
  # SBOM config
  TMP_DIR="${TMP_DIR:-/tmp}"
  @@ -21,39 +21,39 @@ SBOM_OUTPUT="cyclonedx-json"
  set -x
  # Run sbom and dump to file
  echo "Running sbom scan using syft"
  -echo "Image being scanned: ${REGISTRY_IMAGE_FULL}"
  +echo "Image being scanned: ${IMAGE_FULL}"
  set +x
  -if SBOM_IMAGE_RESULTS=$(syft -q packages ${REGISTRY_IMAGE_FULL} -o ${SBOM_OUTPUT} > ${TMP_DIR}/${REPO}-${IMAGE_NAME}.cyclonedx.json); then
  - echo "Successfully generated SBOM for ${REGISTRY_IMAGE_FULL}"
  +if SBOM_IMAGE_RESULTS=$(syft -q packages ${IMAGE_FULL} -o ${SBOM_OUTPUT} > ${TMP_DIR}/${REPO}-${IMAGE_NAME}.cyclonedx.json); then
  + echo "Successfully generated SBOM for ${IMAGE_FULL}"
  SBOM_CONFIGMAP=${REPO}-${IMAGE_NAME}-sbom.config
  set -x
  # If sbom configmap already exists then we need to update, else create new
  - if KUBECONFIG=./kubeconfig.kind.lagoon kubectl --insecure-skip-tls-verify -n ${NAMESPACE} get configmap $SBOM_CONFIGMAP &> /dev/null; then
  - KUBECONFIG=./kubeconfig.kind.lagoon kubectl --insecure-skip-tls-verify \
  + if kubectl --insecure-skip-tls-verify -n ${NAMESPACE} get configmap $SBOM_CONFIGMAP &> /dev/null; then
  + kubectl --insecure-skip-tls-verify \
  -n ${NAMESPACE} \
  create configmap $SBOM_CONFIGMAP \
  --from-file=${TMP_DIR}/${REPO}-${IMAGE_NAME}.cyclonedx.json \
  -o json \
  - --dry-run=client | KUBECONFIG=./kubeconfig.kind.lagoon kubectl replace -f -
  - KUBECONFIG=./kubeconfig.kind.lagoon kubectl --insecure-skip-tls-verify \
  + --dry-run=client | kubectl replace -f -
  + kubectl --insecure-skip-tls-verify \
  -n ${NAMESPACE} \
  label configmap ${REPO}-${IMAGE_NAME}-sbom.config \
  lagoon.sh=insights-sbom
  else
  # Create configmap and add label (#have to add label separately: https://github.com/kubernetes/kubernetes/issues/60295)
  - KUBECONFIG=./kubeconfig.kind.lagoon kubectl --insecure-skip-tls-verify \
  + kubectl --insecure-skip-tls-verify \
  -n ${NAMESPACE} \
  create configmap ${REPO}-${IMAGE_NAME}-sbom.config \
  --from-file=${TMP_DIR}/${REPO}-${IMAGE_NAME}.cyclonedx.json
  - KUBECONFIG=./kubeconfig.kind.lagoon kubectl --insecure-skip-tls-verify \
  + kubectl --insecure-skip-tls-verify \
  -n ${NAMESPACE} \
  label configmap ${REPO}-${IMAGE_NAME}-sbom.config \
  lagoon.sh=insights-sbom
  fi
  set +x
  else
  - echo "Failed to generate SBOM for ${REGISTRY_IMAGE_FULL}"
  + echo "Failed to generate SBOM for ${IMAGE_FULL}"
  fi
  \ No newline at end of file
  