Sha256: eb0ce3e90823a96aad7fa1326b4de39f056f1789409029a66d911fc31812eb8d

Contents?: true

Size: 798 Bytes

Versions: 2

Compression:

Stored size: 798 Bytes

Contents

#!/bin/sh
#
# Publish new gem version, uploads docker images and creates GH tag.
#
###

set -e
set -o nounset
set -o errexit

version=$(cat VERSION)
ARTIFACTS_OUTPUT=artifacts.tar.gz

# Build and publish gem
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

# Create GH tab
tar -c -f ${ARTIFACTS_OUTPUT} *.gem
GITHUB_TOKEN=${GITHUB_TOKEN} hub release create -a ${ARTIFACTS_OUTPUT} -m "v${version}" ${version}

# Upload docker image
#docker build --rm --tag codeclimate/codeclimate .
#docker push codeclimate/codeclimate:latest
#docker tag codeclimate/codeclimate "codeclimate/codeclimate:$version"
#docker push "codeclimate/codeclimate:$version"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
codeclimate-fede-0.85.43 bin/publish
codeclimate-fede-0.85.42 bin/publish