git-metadata-buildpack

module
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2020 License: Apache-2.0

README

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.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>"

Development

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

Directories

Path Synopsis
cmd
build command
detect command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL