Sha256: 7d92562c7504e6dc64c0ae02f53367b011e0f14c212f1faf57e6911a3b1044ce

Contents?: true

Size: 681 Bytes

Versions: 12

Compression:

Stored size: 681 Bytes

Contents

export VERSION=$1
echo "VERSION: ${VERSION}"

echo "=== Pushing tags to github ===="
git tag v$VERSION
git push origin --tags

echo "=== Building Gem ===="
gem build pg_online_schema_change.gemspec

echo "=== Pushing gem ===="
gem push pg_online_schema_change-$VERSION.gem

echo "=== Sleeping for 5s ===="
sleep 5 

echo "=== Building Image ===="
docker build . --build-arg VERSION=$VERSION -t shayonj/pg-osc:$VERSION

echo "=== Tagging Image ===="
docker image tag shayonj/pg-osc:$VERSION shayonj/pg-osc:latest

echo "=== Pushing Image ===="
docker push shayonj/pg-osc:$VERSION
docker push shayonj/pg-osc:latest

echo "=== Cleaning up ===="
rm pg_online_schema_change-$VERSION.gem

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pg_online_schema_change-0.9.0 scripts/release.sh
pg_online_schema_change-0.8.1 scripts/release.sh
pg_online_schema_change-0.8.0 scripts/release.sh
pg_online_schema_change-0.7.5 scripts/release.sh
pg_online_schema_change-0.7.4 scripts/release.sh
pg_online_schema_change-0.7.3 scripts/release.sh
pg_online_schema_change-0.7.2 scripts/release.sh
pg_online_schema_change-0.7.1 scripts/release.sh
pg_online_schema_change-0.7.0 scripts/release.sh
pg_online_schema_change-0.6.0 scripts/release.sh
pg_online_schema_change-0.5.0 scripts/release.sh
pg_online_schema_change-0.4.0 scripts/release.sh