Skip to content
A Concourse CI resource for Ruby gems
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
.gitignore
Dockerfile
LICENSE
README.md

README.md

Concourse RubyGems Resource

A Concourse CI resource for manipulating RubyGems.

Resource Type Configuration

resource_types:
- name: rubygem
  type: docker-image
  source:
    repository: troykinsella/concourse-rubygems-resource
    tag: latest

Source Configuration

  • credentials: Optional. The contents of the ~/.gem/credentials file.
  • gem_name: Required. The name of the RubyGem.
  • prerelease: Optional. Default: false. true to include prerelease versions in checks and gets.
  • source_url: Optional. The URL of the RubyGem host. Unless specified, this resource operates on the default RubyGem host: https://rubygems.org.

Example

resources:
- name: gem
  type: rubygem
  source:
    source_url: https://artifactory.example.com/api/gems/gems-local
    gem_name: wickedizer
    credentials: |
      :rubygems_api_key: Basic fKtpr1kRTNBdn...V3aVdZTTlhFUmpTdno=

Behaviour

check: Check for new RubyGems

The latest version of the RubyGem is queried from the configured source.

in: Install the RubyGem

Performs a gem install of the RubyGem name.

Parameters

  • install_options: Optional. Additional command line arguments to pass to the gem install command. The following options are managed and should not be supplied in repeat through this parameter:
    • --install-dir
    • --[no-]prerelease
    • --remote
    • --source
    • --version
  • skip_download: Optional. Default: false. true to skip installing the RubyGem.

Example

jobs:
- name: gem-integration
  plan:
  - get: gem
  - task: integration test
    file: ...

out: Push a RubyGem

Publishes a RubyGem file to a repository using gem push.

Parameters

  • gem_dir: Required. The directory in which the built RubyGem file is located.
  • gem_regex: Optional. A RegEx that can match the RubyGem file name to publish.
  • key_name: Optional. The name of the API key in ~/.gem/credentials to use.

Example

jobs:
- name: publish-gem
  plan:
  - task: build gem
    file: ...
  - put: gem
    params:
      gem_dir: built-gem
    get_params:
      skip_download: true

License

MIT © Troy Kinsella

You can’t perform that action at this time.