diff --git a/README.md b/README.md
index b43025e9..d7fffebe 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# Git Resource
-Tracks the commits in a [git](http://git-scm.com/) repository.
+Tracks commits, tags, or branches in a [git](http://git-scm.com/) repository.
@@ -15,20 +15,27 @@ Tracks the commits in a [git](http://git-scm.com/) repository.
uri (Required)branch (Optional)version_type (Optional)get steps; however, it is required when used in a
- put step. If unset, get steps will checkout
- the repository's default branch; usually master but could
- be different.
+ commits (Default): Resource will return commits from the specified branch. Can also be used to find tags on a branch.tags: Resource will find matching tags from the git repo.branches: Resource will return a list of branches from the git repo.| Field Name | +Description | +||
|---|---|---|---|
uri (Required) |
+ The location of the repository. | +||
private_key (Optional) |
Private key to use when using an ssh@ format uri. Example:
@@ -60,107 +67,10 @@ private_key: |
| password (Optional) |
Password for HTTP(S) auth when pulling/pushing. |
paths (Optional) |
-
- If specified (as a list of glob patterns), only changes to the specified files will yield new versions from check.
- Example:
- -- name: repo - type: git - source: - paths: - - some-folder/* - - another/folder/path/* -- |
- ||
sparse_paths (Optional) |
-
- If specified (as a list of glob patterns), only these paths will be
- checked out. Should be used with paths to only trigger on
- desired paths. paths and sparse_paths may be
- the same or you can configure sparse_paths to check out
- other paths.
- Example:
- -- name: repo - type: git - source: - paths: - - some-folder/* - - another/folder/path/* - sparse_paths: - - some-folder/* - - another/folder/path/* -- |
- ||
ignore_paths (Optional) |
-
- The inverse of paths; changes to the specified files are
- ignored. Note that if you want to push commits that change these
- files via a -- name: repo - type: git - source: - ignore_paths: - - some-folder/* - - another/folder/path/* -- |
- ||
skip_ssl_verification (Optional) |
Skips git ssl verification by exporting GIT_SSL_NO_VERIFY=true. |
||
tag_filter (Optional) |
-
- If specified, the resource will only detect commits that have a tag
- matching the expression that have been made against the
- branch. Patterns are glob(7)
- compatible (as in, bash compatible).
- |
- ||
tag_regex (Optional) |
-
- If specified, the resource will only detect commits that have a tag
- matching the expression that have been made against the
- branch. Patterns are grep
- compatible (extended matching enabled, matches entire lines only).
- Ignored if tag_filter is also specified.
- |
- ||
tag_behaviour (Optional) |
-
- If match_tagged (the default), then the resource will only
- detect commits that are tagged with a tag matching
- tag_regex and tag_filter, and match all other
- filters. If match_tag_ancestors, then the resource will
- only detect commits matching all other filters and that are ancestors of
- a commit that are tagged with a tag matching tag_regex and
- tag_filter.
- |
- ||
fetch_tags (Optional) |
- If true the flag --tags will be used to fetch all tags in the repository. If false no tags will be fetched. |
- ||
submodule_credentials (Optional) |
List of credentials for HTTP(s) or SSH auth when pulling git submodules which are not stored in the same git server as the container repository or are protected by a different private key. @@ -261,6 +171,136 @@ git_config: | ||
debug (Optional) |
+
+ Set to true to enable. Sets the following for check/get/put
+ steps of the resource. Secrets may not be correctly redacted due the
+ JSON encoding of longer secret strings.
+ +set -x +export GIT_TRACE=1 +export GIT_TRACE_PACKFILE=1 +export GIT_CURL_VERBOSE=1 ++ |
+
| Field Name | +Description | +
|---|---|
branch (Optional) |
+
+ The branch to track. This is optional if the resource is only used in
+ get steps; however, it is required when used in a
+ put step. If unset, get steps will checkout
+ the repository's default branch; usually master but could
+ be different.
+ |
+
paths (Optional) |
+
+ If specified (as a list of glob patterns), only changes to the specified files will yield new versions from check.
+ Example:
+ +- name: repo + type: git + source: + paths: + - some-folder/* + - another/folder/path/* ++ |
+
sparse_paths (Optional) |
+
+ If specified (as a list of glob patterns), only these paths will be
+ checked out. Should be used with paths to only trigger on
+ desired paths. paths and sparse_paths may be
+ the same or you can configure sparse_paths to check out
+ other paths.
+ Example:
+ +- name: repo + type: git + source: + paths: + - some-folder/* + - another/folder/path/* + sparse_paths: + - some-folder/* + - another/folder/path/* ++ |
+
ignore_paths (Optional) |
+
+ The inverse of paths; changes to the specified files are
+ ignored. Note that if you want to push commits that change these
+ files via a +- name: repo + type: git + source: + ignore_paths: + - some-folder/* + - another/folder/path/* ++ |
+
tag_filter (Optional) |
+
+ If specified, the resource will only detect commits that have a tag
+ matching the expression that have been made against the
+ branch. Patterns are glob(7)
+ compatible (as in, bash compatible).
+ |
+
tag_regex (Optional) |
+
+ If specified, the resource will only detect commits that have a tag
+ matching the expression that have been made against the
+ branch. Patterns are grep
+ compatible (extended matching enabled, matches entire lines only).
+ Ignored if tag_filter is also specified.
+ |
+
tag_behaviour (Optional) |
+
+ If match_tagged (the default), then the resource will only
+ detect commits that are tagged with a tag matching
+ tag_regex and tag_filter, and match all other
+ filters. If match_tag_ancestors, then the resource will
+ only detect commits matching all other filters and that are ancestors of
+ a commit that are tagged with a tag matching tag_regex and
+ tag_filter.
+ |
+
fetch_tags (Optional) |
+ If true the flag --tags will be used to fetch all tags in the repository. If false no tags will be fetched. |
+
commit_filter (Optional) |
Object containing commit message filters
@@ -294,18 +334,64 @@ commit_filter:
usually create. See also out params.refs_prefix.
|
debug (Optional) |
+ Field Name | +Description | +
|---|---|---|
tag_filters (Optional) |
- Set to true to enable. Sets the following for check/get/put
- steps of the resource. Secrets may not be correctly redacted due the
- JSON encoding of longer secret strings.
- -set -x -export GIT_TRACE=1 -export GIT_TRACE_PACKFILE=1 -export GIT_CURL_VERBOSE=1 -+ A list of glob patterns used to filter tags. Only matching tags will be + returned. Patterns are glob(7) + compatible (as in, bash compatible). If you're only specifying one glob + pattern you can use tag_filter.
+ |
+ |
tag_regex (Optional) |
+
+ Regex pattern used to filter tags. Only matching tags will be returned.
+ Patterns are grep
+ compatible (extended matching enabled).
+ Ignored if tag_filter(s) is also specified.
+ |
+ |
tag_sort (Optional) |
+ Sorting is applied after filtering. Accepts the following values:
+
|
+
| Field Name | +Description | +
|---|---|
branch_filters (Optional) |
+ + A list of glob patterns used to filter branches. Only matching branches will be returned. + Patterns are glob(7) + compatible (as in, bash compatible). + | +
branch_regex (Optional) |
+
+ Regex pattern used to filter branches. Only matching branches will be returned.
+ Patterns are grep
+ compatible (extended matching enabled).
+ Ignored if branch_filters is also specified.
|
version_type: commitsversion_type: tags| Field Name | +Description | +
|---|---|
submodulesOptional |
+
+ If none, submodules will not be fetched. If specified as a
+ list of paths, only the given paths will be fetched. If not specified,
+ or if all is explicitly specified, all submodules are
+ fetched.
+ |
+
submodule_recursiveOptional |
+ If false, a flat submodules checkout is performed. If not specified, or if true is explicitly specified, a recursive checkout is performed. |
+
submodule_remoteOptional |
+
+ If true, the submodules are checked out for the specified
+ remote branch specified in the .gitmodules file of the
+ repository. If not specified, or if false is explicitly
+ specified, the tracked sub-module revision of the repository is used to
+ check out the submodules.
+ |
+
disable_git_lfsOptional |
+ If true, will not fetch Git LFS files. |
+
short_ref_formatOptional |
+ When populating .git/short_ref use this printf format. Defaults to %s. |
+
timestamp_formatOptional |
+
+ When populating .git/commit_timestamp use this options to
+ pass to git
+ log --date. Defaults to iso8601.
+ |
+
debug (Optional) |
+
+ Set to true to enable. Sets the following for check/get/put
+ steps of the resource. Secrets may not be correctly redacted due the
+ JSON encoding of longer secret strings.
+ +set -x +export GIT_TRACE=1 +export GIT_TRACE_PACKFILE=1 +export GIT_CURL_VERBOSE=1 ++ |
+
version_type: branches