Skip to content

bstick12/git-metadata-buildpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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