Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.31 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.31 KB

GIT Metadata Buildpack

CircleCI Download codecov

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.

Usage

pack build <image-name> --builder cloudfoundry/cnb:cflinuxfs3 --buildpack https://bintray.com/bstick12/buildpacks/download_file?file_path=git-metadata-buildpack-0.5.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>"

Development

scripts/unit.sh - Runs unit tests for the buildpack scripts/build.sh - Builds the buildpack scripts/package.sh - Package the buildpack