Visitar URL original
git-data | ZarfSkip to content

git-data

To learn more about how Zarf handles git repositories, see the Git Repositories section of the package components documentation.

zarf.yaml

apiVersion: zarf.dev/v1beta1
kind: ZarfPackageConfig
metadata:
name: git-data
version: 0.0.1
description: Demo Zarf loading resources into a gitops service
components:
- name: full-repo
optional: true
repositories:
# The following performs a full Git Repo Mirror with `go-git` (internal to Zarf)
- url: https://github.com/zarf-dev/zarf-public-test.git
# The following performs a full Git Repo Mirror forcing a fallback to host `git`
- url: https://dev.azure.com/defenseunicorns/zarf-public-test/_git/zarf-public-test
- name: specific-tag
optional: true
repositories:
# The following performs a tag Git Repo Mirror with `go-git` (internal to Zarf)
- url: https://github.com/zarf-dev/zarf-public-test.git
ref:
tag: v0.0.1
# The following performs a tag Git Repo Mirror forcing a fallback to host `git`
- url: https://dev.azure.com/defenseunicorns/zarf-public-test/_git/zarf-public-test
ref:
tag: v0.0.1
- name: specific-branch
optional: true
repositories:
# The following performs a branch Git Repo Mirror with `go-git` (internal to Zarf)
- url: https://github.com/zarf-dev/zarf-public-test.git
ref:
branch: dragons
# The following performs a branch Git Repo Mirror forcing a fallback to host `git`
- url: https://dev.azure.com/defenseunicorns/zarf-public-test/_git/zarf-public-test
ref:
branch: dragons
- name: specific-hash
optional: true
repositories:
# The following performs a SHA Git Repo Mirror with `go-git` (internal to Zarf)
- url: https://github.com/zarf-dev/zarf-public-test.git
ref:
commit: 01a23218923f24194133b5eb11268cf8d73ff1bb
# The following performs a SHA Git Repo Mirror forcing a fallback to host `git`
- url: https://dev.azure.com/defenseunicorns/zarf-public-test/_git/zarf-public-test
ref:
commit: 01a23218923f24194133b5eb11268cf8d73ff1bb
attachments:
readme: readme.md