Documentation
¶
Index ¶
Constants ¶
View Source
const GitImage = "alpine/git"
Variables ¶
This section is empty.
Functions ¶
func CloneContainer ¶
CloneContainer returns the container definition that uses git clone to clone the 'git url' and checks out the ref provided at 'ref'. Multiple refs can be provided via a space character (' '). If multiple refs are provided, then the container will attempt to checkout each ref at a time, stopping at the first one that is successful. This can be useful in PRs which have a coupled association with another codebase. A practical example (and why this exists): "${pr_source_branch} ${pr_target_branch} ${main}" will first attempt to checkout the PR source branch, then the PR target branch, then "main"; whichever is successul first.
func CloneWithGitHubToken ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.