Sha256: ffd896d9cf31b66e0cf86fd2d6c769afbe0788c2682e270b57a8f462faf94bc7

Contents?: true

Size: 717 Bytes

Versions: 19

Compression:

Stored size: 717 Bytes

Contents

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

./bin/validate-release

version=$(< VERSION)

git fetch origin master
git reset --hard origin/master

printf "RELEASE %s\n" "$version"
bundle check || bundle install
rake release

docker build --rm --tag 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")

cat <<EOM
Be sure to update release notes:

  https://github.com/codeclimate/codeclimate/releases/new?tag=v$version

EOM

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
codeclimate-0.85.8 bin/release
codeclimate-0.85.7 bin/release
codeclimate-0.85.6 bin/release
codeclimate-0.85.5 bin/release
codeclimate-0.85.4 bin/release
codeclimate-0.85.3 bin/release
codeclimate-0.85.2 bin/release
codeclimate-0.85.1 bin/release
codeclimate-0.85.0 bin/release
codeclimate-0.84.0 bin/release
codeclimate-0.83.0 bin/release
codeclimate-0.82.0 bin/release
codeclimate-0.81.0 bin/release
codeclimate-0.80.0 bin/release
codeclimate-0.79.0 bin/release
codeclimate-0.78.1 bin/release
codeclimate-0.78.0 bin/release
codeclimate-0.77.0 bin/release
codeclimate-0.76.0 bin/release