Use the git resource now that this is merged: concourse/git-resource#225
Tracks github git tags (Annotated or Lightweight) regardless of the branch.
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
-
repository_name
: Required. The repository name. -
uri
: Optional. The git URI. Defaults to git@github.com:repository_name
.git -
tag_filter
: Optional. The glob pattern to match tags against. Defaults to "..*" -
private_key
: Optional. Required if uri starts withgit@
. The private key string to clone the repository. -
PrivateKeyPassword
: Optional. Required ifprivate_key
is password protected. The password for the private key. -
LatestOnly
: Optional. Get only the latest tag. Defaults totrue
.
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: "git@github.com/concourse/concourse.git"
tag_filter: "*.*.*"
private_key: "----RSA----\nKEY\n----RSA----"
Search for the latest version of source.uri
.
Output tag
, ref
, shortref
, tag_type
, committer
, author
in .git
folder.
No uses.
- Common sense.
To be implemented.
TBD.