This is a Cloud Native Buildpack V3 that adds GIT metadata as a layer to the built container.
This buildpack is designed to work in collaboration with other buildpacks.
pack build <image-name> --builder cloudfoundry/cnb:cflinuxfs3 --buildpack https://bintray.com/bstick12/buildpacks/download_file?file_path=git-metadata-buildpack-0.4.0.tgz
The following layer will be added to your container
/layers/io.bstick12.buildpacks.git-metadata/git-metadata/
The git-metadata.toml
file will contain the following elements
sha = "<sha>"
branch = "<remote>/<branch>"
remote = "<remote url>"
scripts/unit.sh
- Runs unit tests for the buildpack
scripts/build.sh
- Builds the buildpack
scripts/package.sh
- Package the buildpack