git-tags-resource

command module
v0.0.0-...-e0db871 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 20, 2020 License: MIT Imports: 9 Imported by: 0

README

DEPRECATED

Use the git resource now that this is merged: https://github.com/concourse/git-resource/pull/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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL