Skip to content

Commit

Permalink
Documentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
samdoran committed Sep 20, 2024
1 parent 8cb9637 commit 4398107
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions task/git-clone-oci-ta/0.1/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ The git-clone-oci-ta Task will clone a repo from the provided url and store it a
|ociStorage|The OCI repository where the Trusted Artifacts are stored.||true|
|refspec|Refspec to fetch before checking out revision.|""|false|
|revision|Revision to checkout. (branch, tag, sha, ref, etc...)|""|false|
|shortCommitLength|Length of short commit SHA|7|false|
|sparseCheckoutDirectories|Define the directory patterns to match or exclude when performing a sparse checkout.|""|false|
|sslVerify|Set the `http.sslVerify` global git config. Setting this to `false` is not advised unless you are sure that you trust your git remote.|true|false|
|submodules|Initialize and fetch git submodules.|true|false|
|url|Repository URL to clone from.||true|
|userHome|Absolute path to the user's home directory. Set this explicitly if you are running the image as a non-root user. |/tekton/home|false|
|verbose|Log the commands that are executed during `git-clone`'s operation.|false|false|
|shortCommitLength|Length of the returned short-commit|7|false|

## Results
|name|description|
|---|---|
|SOURCE_ARTIFACT|The Trusted Artifact URI pointing to the artifact with the application source code.|
|commit|The precise commit SHA that was fetched by this Task.|
|short-commit|The commit SHA that was fetched by this Task shortened to `shortCommitLength` number of characters|
|commit-timestamp|The commit timestamp of the checkout|
|short-commit|The commit SHA that was fetched by this Task limited to params.shortCommitLength number of characters|
|url|The precise URL that was fetched by this Task.|

## Workspaces
Expand Down
15 changes: 8 additions & 7 deletions task/git-clone-oci-ta/0.1/git-clone-oci-ta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ spec:
N commits.
type: string
default: "1"
- name: shortCommitLength
description: Length of short commit SHA
type: string
default: "7"
- name: enableSymlinkCheck
description: |
Check symlinks in the repo. If they're pointing outside of the repo, the build will fail.
Expand Down Expand Up @@ -70,6 +66,10 @@ spec:
description: Revision to checkout. (branch, tag, sha, ref, etc...)
type: string
default: ""
- name: shortCommitLength
description: Length of short commit SHA
type: string
default: "7"
- name: sparseCheckoutDirectories
description: Define the directory patterns to match or exclude when
performing a sparse checkout.
Expand Down Expand Up @@ -105,10 +105,11 @@ spec:
type: string
- name: commit
description: The precise commit SHA that was fetched by this Task.
- name: short-commit
description: The commit SHA that was fetched by this Task limited to params.shortCommitLength number of characters
- name: commit-timestamp
description: The commit timestamp of the checkout
- name: short-commit
description: The commit SHA that was fetched by this Task limited to
params.shortCommitLength number of characters
- name: url
description: The precise URL that was fetched by this Task.
volumes:
Expand Down Expand Up @@ -246,7 +247,7 @@ spec:
exit "${EXIT_CODE}"
fi
printf "%s" "${RESULT_SHA}" >"$(results.commit.path)"
printf "%s" "${RESULT_SHA_SHORT}" > "$(results.short-commit.path)"
printf "%s" "${RESULT_SHA_SHORT}" >"$(results.short-commit.path)"
printf "%s" "${PARAM_URL}" >"$(results.url.path)"
printf "%s" "$(git log -1 --pretty=%ct)" >"$(results.commit-timestamp.path)"
Expand Down

0 comments on commit 4398107

Please sign in to comment.