Git
@ethanmdavidson
A plugin for Packer which provides access to git.
- Community
Updated 2 years ago
- GitHub(opens in new tab)
Git
The Git plugin is able to interact with Git repos through Packer.
Installation
To install this plugin, copy and paste this code into your Packer configuration, then run packer init
.
Alternatively, you can use packer plugins install
to manage installation of this plugin.
Components
Data Sources
- git-commit - Retrieve information about a specific commit, e.g. the commit hash.
- git-repository - Retrieve information about a repository, e.g. the value of HEAD.
- git-tree - Retrieve the list of
files present in a specific commit, similar to
git ls-tree -r
.