#!/bin/sh # # Publish new gem version and creates GH tag for it. # ### set -e set -o nounset set -o errexit # Publish gem in rubygems mkdir -p $HOME/.gem touch $HOME/.gem/credentials chmod 0600 $HOME/.gem/credentials printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials #gem build *.gemspec #gem push *.gem rake release #version=$(< VERSION) # Publish dockker image #docker build --rm --tag codeclimate/codeclimate . #docker push codeclimate/codeclimate:latest #docker tag codeclimate/codeclimate "codeclimate/codeclimate:$version" #docker push "codeclimate/codeclimate:$version"