<commit_before>#!/bin/bash -e

function usage {
   echo "$0 <version>"
}

if [ $# -ne 1 ]; then
	usage
	exit 2
fi

VERSION=$1
S3_BUCKET="coreos-kubernetes"

echo "Preparing release artifacts for $VERSION"

pushd multi-node/aws

./build
echo "Built kube-aws binary for local system"

./bin/kube-aws render --output=artifacts/template.json
echo "Generated CloudFormation template"

aws s3 cp --recursive --acl=public-read artifacts/ s3://${S3_BUCKET}/${VERSION}
aws s3 cp --recursive --acl=public-read artifacts/ s3://${S3_BUCKET}/latest
echo "Copied artifacts to S3 bucket"
<commit_msg>contrib: support s3 bucket override on publish-release<commit_after>#!/bin/bash -e

function usage {
   echo "$0 <version>"
}

if [ $# -ne 1 ]; then
	usage
	exit 2
fi

VERSION=$1
S3_BUCKET=${S3_BUCKET:-coreos-kubernetes}

echo "Preparing release artifacts for $VERSION"

pushd multi-node/aws

./build
echo "Built kube-aws binary for local system"

./bin/kube-aws render --output=artifacts/template.json
echo "Generated CloudFormation template"

aws s3 cp --recursive --acl=public-read artifacts/ s3://${S3_BUCKET}/${VERSION}
aws s3 cp --recursive --acl=public-read artifacts/ s3://${S3_BUCKET}/latest
echo "Copied artifacts to S3 bucket"

{'fraction_non_alphanumeric': 0.13654946852003272, 'fraction_numerical': 0.02125919869174162, 'mean_word_length': 4.1645569620253164, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7557797', 'n_tokens_mistral': 445, 'n_tokens_neox': 427, 'n_words': 126}