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/git.md
Andrea Luzzardi 5b7b1cab79 Migrate dagger.#Secret and dagger.#Stream to new format
- Refactored to keep every transformation of built-in types (e.g. FS,
  Secret, etc) to/from CUE in the same place (plancontext)
- dagger.#Service and dagger.#Secret are now following the new FS-like format
  (e.g. `_service: id: string`)
- Backward compatibility
- dagger.#Stream is now an alias for dagger.#Service

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-12-01 17:33:35 -08:00

3.1 KiB

sidebar_label
git

alpha.dagger.io/git

Git operations

import "alpha.dagger.io/git"

git.#Commit

Commit & push to git repository

git.#Commit Inputs

Name Type Description
repository.remote string Repository remote URL
repository.authToken *null | {} Authentication token (PAT or password)
repository.branch string Git branch
name string Username
email string Email
message string Commit message
force *false | bool Force push options

git.#Commit Outputs

Name Type Description
hash string Commit hash

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.#Image

git.#Image Inputs

No input.

git.#Image Outputs

No output.

git.#Repository

A git repository

git.#Repository Inputs

Name Type Description
remote string Git remote link
ref string Git ref: can be a commit, tag or branch. Example: "main"
subdir *null | string (optional) Subdirectory
authToken *null | {} (optional) Add Personal Access Token
authHeader *null | {} (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