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.
dagger/docs/reference/universe/git.md
Guillaume de Rouville 08f395b70d Add auth to Git.#Repository
Signed-off-by: Guillaume de Rouville <guillaume.derouville@gmail.com>
2021-08-27 15:58:55 +02:00

1.9 KiB

sidebar_label
git

alpha.dagger.io/git

Git operations

import "alpha.dagger.io/git"

git.#CurrentBranch

Get the name of the current checked out branch or tag

git.#CurrentBranch Inputs

Name Type Description
repository dagger.#Artifact Git repository

git.#CurrentBranch Outputs

Name Type Description
name string Git branch name

git.#Repository

A git repository

git.#Repository Inputs

Name Type Description
remote string Git remote. Example: "https://github.com/dagger/dagger"
ref string Git ref: can be a commit, tag or branch. Example: "main"
subdir *null | string (optional) Subdirectory
authToken dagger.#Secret (optional) Add Personal Access Token
authHeader dagger.#Secret (optional) Add OAuth Token

git.#Repository Outputs

No output.

git.#Tags

List tags of a repository

git.#Tags Inputs

Name Type Description
repository dagger.#Artifact Git repository

git.#Tags Outputs

Name Type Description
tags [] Repository tags