This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
Richard Jones 455ccc460f
removed URL from docs
Signed-off-by: Richard Jones <richard@dagger.io>
2021-12-22 15:44:16 -07:00

31 lines
670 B
CUE

package engine
// Push a directory to a git remote
#GitPush: {
@dagger(notimplemented)
$dagger: task: _name: "GitPush"
input: #FS
remote: string
ref: string
}
// Pull a directory from a git remote
// Warning: do NOT embed credentials in the remote url as this will expose them in logs.
// By using username and password Dagger will handle this for you in a secure manner.
#GitPull: {
$dagger: task: _name: "GitPull"
remote: string
ref: string
keepGitDir: true | *false
auth?: {
username: string
password: #Secret // can be password or personal access token
} | {
authToken: #Secret
} | {
authHeader: #Secret
}
output: #FS
}