Git Product home page Git Product logo

git-tags-resource's Introduction

DEPRECATED

Use the git resource now that this is merged: concourse/git-resource#225

Git Tags Resource

Tracks github git tags (Annotated or Lightweight) regardless of the branch.

IMPORTANT

Be aware that this resource only supports tags in line with Semver All non-semver tags will be dropped/ignored

resource_types:
- name: git-tags-resource
  type: docker-image
  source:
    repository: adgear/git-tags-resource

Source Configuration

  • repository_name: Required. The repository name.

  • uri: Optional. The git URI. Defaults to [email protected]:repository_name.git

  • tag_filter: Optional. The glob pattern to match tags against. Defaults to "..*"

  • private_key: Optional. Required if uri starts with git@. The private key string to clone the repository.

  • PrivateKeyPassword: Optional. Required if private_key is password protected. The password for the private key.

  • LatestOnly: Optional. Get only the latest tag. Defaults to true.

Example

Resource configuration for incubator repository

resources:
- name: concourse-tags
  type: git-tags-resource
  source:
    repository_name: concourse/concourse
    uri: "https://github.com/concourse/concourse.git"
    tag_filter: "*.*.*"

Resource configuration for private repository

resources:
- name: concourse-tags
  type: git-tags-resource
  source:
    repository_name: concourse/concourse
    uri: "[email protected]/concourse/concourse.git"
    tag_filter: "*.*.*"
    private_key: "----RSA----\nKEY\n----RSA----"

Behavior

check: Check for new git tags

Search for the latest version of source.uri.

in: Get the latest tag ref.

Output tag, ref, shortref, tag_type, committer, author in .git folder.

out: Nothing

No uses.

Development

Prerequisites

  • Common sense.

Running the tests

To be implemented.

License

MIT

Contributing

TBD.

git-tags-resource's People

Contributors

typositoire avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

git-tags-resource's Issues

Correct Error Messages

When providing an URL parameter, when the resource performs in, it fails and displays the message.

{"level":"fatal","msg":"URL field is required","time":"2019-04-10T14:40:47Z"}

This should be uri and not URL.

Using git uris result in errors

Declaring an uri in the form

uri: [email protected]/user/repo.git

Yields the following message on check :

{"level":"fatal","msg":"exec: \"git\": executable file not found in $PATH","time":"2019-04-10T14:49:55Z"}

Unable to pull private https repositories

Setting the uri as :

uri: https://github.com/user/repo.git
private_key: "===BEGIN DERPCRET===[...]"

Yields a failure on private repositories with the following message :

{"level":"fatal","msg":"invalid auth method","time":"2019-04-10T14:54:47Z"}

Update Documentation

  • git uris which are not supported
  • Specifying an URI is not optional

The documentation should be updated accordingly.

Do the needful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.