gemgate receives built gems and makes them available via S3.
Example use:
$ gem build foobar.gemspec #=> produces foobar-0.0.1.gem
$ curl -F [email protected] -u foo:bar https://gemgate.herokuapp.com/
$ gem sources -a https://gemgate.s3.amazonaws.com/deadbeef/
$ gem install foobar -v 0.0.1
$ cp .env.sample .env
# edit .env
$ foreman start
$ curl -F [email protected] -u $GEMGATE_AUTH http://localhost:5000/
$ gem sources -a https://gemgate-development.s3.amazonaws.com/$S3_KEY_PREFIX
$ gem install foobar -v 0.0.1
$ heroku create gemgate-production -s cedar
$ heroku config:add -a gemgate-production \
AWS_ACCESS_KEY_ID=... \
AWS_SECRET_ACCESS_KEY=... \
GEMGATE_AUTH=foo:bar \
S3_BUCKET=... \
S3_KEY_PREFIX=...
$ git push heroku master
GEMGATE_AUTH
: User and password to require for basic auth, joined by:
AWS_ACCESS_KEY_ID
: The AWS access key to use when communicating with S3AWS_SECRET_ACCESS_KEY
: The AWS secret access key to use when communicating with S3S3_BUCKET
: Name of the S3 bucket to useS3_KEY_PREFIX
: Probably random string (eg created withopenssl rand -hex 32
) to prefix file/directory keys with. Mainly for security.
It's recommended you use IAM credentials with bucket-specific access for S3.