<commit_before>#!/bin/bash -e

cd $(dirname $0)/../../git-bits-service-release

if [ -e "$VERSION_FILE" ]; then
  export VERSION=$(cat $VERSION_FILE)
  echo "Using VERSION=\"$VERSION\""
else
  echo "The \$VERSION_FILE \"$VERSION_FILE\" does not exist"
  exit 1
fi

bosh -u x -p x target $BOSH_TARGET Lite
bosh login $BOSH_USERNAME $BOSH_PASSWORD

if [ -z "$BLOBSTORE_TYPE" ]
then
  >&2 echo "Please provide $BLOBSTORE_TYPE"
  exit 1
else
  ./scripts/generate-test-bosh-lite-manifest \
    ./templates/$BLOBSTORE_TYPE.yml \
    ../git-bits-service-ci/manifests/bits-release-network-$BLOBSTORE_TYPE.yml
fi

cp deployments/bits-service-release.yml ../manifests/manifest-$VERSION.yml<commit_msg>Make bits-service deployment manifest available as 'manifests/manifest.yml'<commit_after>#!/bin/bash -e

cd $(dirname $0)/../../git-bits-service-release

if [ -e "$VERSION_FILE" ]; then
  export VERSION=$(cat $VERSION_FILE)
  echo "Using VERSION=\"$VERSION\""
else
  echo "The \$VERSION_FILE \"$VERSION_FILE\" does not exist"
  exit 1
fi

bosh -u x -p x target $BOSH_TARGET Lite
bosh login $BOSH_USERNAME $BOSH_PASSWORD

if [ -z "$BLOBSTORE_TYPE" ]
then
  >&2 echo "Please provide $BLOBSTORE_TYPE"
  exit 1
else
  ./scripts/generate-test-bosh-lite-manifest \
    ./templates/$BLOBSTORE_TYPE.yml \
    ../git-bits-service-ci/manifests/bits-release-network-$BLOBSTORE_TYPE.yml
fi

cp deployments/bits-service-release.yml ../manifests/manifest-$VERSION.yml
cp deployments/bits-service-release.yml ../manifests/manifest.yml
{'fraction_non_alphanumeric': 0.14834437086092717, 'fraction_numerical': 0.005298013245033113, 'mean_word_length': 3.8121019108280256, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2991071', 'n_tokens_mistral': 581, 'n_tokens_neox': 544, 'n_words': 122}