This docker image is based on the official Ruby image and adds the Gemfury gem to it. This is very useful for CI pipelines that need to upload gems to Gemfury.
The following example shows how to use this image in a GitLab CI pipeline (e.g. .gitlab-ci.yml).
It depends on a build job that produces a .gem file in the pkg directory.
Configure GEMFURY_API_TOKEN as a variable in the GitLab CI settings.
Learn more how to manage access tokens (push tokens) at Gemfury.
upload:gemfury:
image:
name: tmaier/gemfury:latest
entrypoint: [""]
script:
- fury push ./pkg/*.gem --api-token=$GEMFURY_API_TOKEN
variables:
GIT_STRATEGY: none
dependencies:
- build
stage: upload
only:
- masterTobias L. Maier for BauCloud GmbH
See LICENSE.