Skip to content

Thank you #8

@suhlig

Description

@suhlig

I just used this resource to discover new versions of a rubygem (which seems not to be possible with the rubygems-resource).

My configuration is:

- name: httpspell-gem
  type: http-jq-resource
  source:
    base_url: https://rubygems.org/api/v1/gems/httpspell.json
    jq_filter: "{version: .version}"

Contrary to the documentation, the discovered version is actually available in a get step, so that I can load it as build variable:

- load_var: httpspell-gem-version
  file: httpspell-gem/version
  format: json

and then make use of it as ((.:httpspell-gem-version.version)).

Thanks a lot for this resource, and keep up the good work!

PS: Feel free to close this issue after reading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions