Sha256: e1cd694ec97ee613cc0d658c06d082c0e67eb837f7f13325455c25d2d4f3bb8a

Contents?: true

Size: 986 Bytes

Versions: 27

Compression:

Stored size: 986 Bytes

Contents

#!/bin/sh
#
# Release a new version of this repository.
#
# Assumes bin/prep-release was run and the PR merged.
#
# Usage: bin/release
#
###
set -e

git checkout master
git pull

version=$(< VERSION)

printf "RELEASE %s\n" "$version"
rake release

docker build --rm -t codeclimate/codeclimate .
docker push codeclimate/codeclimate:latest
docker tag codeclimate/codeclimate "codeclimate/codeclimate:$version"
docker push "codeclimate/codeclimate:$version"

(cd ../homebrew-formulae/ && bin/release "$version")
(cd ../marketingsite/ && bin/set-cli-version "$version" && bin/deploy) || {
  cat >&2 <<EOF
--------------------------------------------------------------------------------
- WARNING: Marketing site update failed. Please do this manually.              -
--------------------------------------------------------------------------------
EOF
}

echo "Be sure to update release notes:"
echo ""
echo "  https://github.com/codeclimate/codeclimate/releases/new?tag=v$version"
echo ""

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
codeclimate-0.35.2 bin/release
codeclimate-0.35.1 bin/release
codeclimate-0.35.0 bin/release
codeclimate-0.34.1 bin/release
codeclimate-0.34.0 bin/release
codeclimate-0.33.0 bin/release
codeclimate-0.32.1 bin/release
codeclimate-0.32.0 bin/release
codeclimate-0.32.0.rc1 bin/release
codeclimate-0.31.1 bin/release
codeclimate-0.31.0 bin/release
codeclimate-0.30.1 bin/release
codeclimate-0.30.0 bin/release
codeclimate-0.29.0 bin/release
codeclimate-0.28.0 bin/release
codeclimate-0.27.2 bin/release
codeclimate-0.27.1 bin/release
codeclimate-0.27.0 bin/release
codeclimate-0.27.0.rc1 bin/release
codeclimate-0.26.0 bin/release