Sha256: f76c517716603f01bfc3e85e5c82c82634f14459256aaa3521bc1331d184e0d8

Contents?: true

Size: 1.05 KB

Versions: 52

Compression:

Stored size: 1.05 KB

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

printf "############################################################################"
printf "#  The stdout will eventually hang with no message.                        #"
printf "#  It is waiting for RubyGems TFA code input, type it in and hit enter!    #"
printf "############################################################################"
printf "\n\n"
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

52 entries across 52 versions & 2 rubygems

Version Path
codeclimate-fede-0.85.38 bin/release
codeclimate-fede-0.85.37 bin/release
codeclimate-fede-0.85.36 bin/release
codeclimate-fede-0.85.35 bin/release
codeclimate-fede-0.85.33 bin/release
codeclimate-fede-0.85.32 bin/release
codeclimate-fede-0.85.31 bin/release
codeclimate-fede-0.85.30 bin/release
codeclimate-fede-0.85.21 bin/release
codeclimate-fede-0.85.24 bin/release
codeclimate-fede-0.85.23 bin/release
codeclimate-0.85.23 bin/release