git-ssh-buildpack

module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: Apache-2.0

README

GIT SSH key buildpack for Github

This is a Cloud Native Buildpack V3 that enables adding an SSH key to the build process and forces git to use SSH rather than HTTPS for communication with Github.

This buildpack is designed to work in collaboration with other buildpacks.

Usage

Export your SSH key to an environment variable named GIT_SSH_KEY

export GIT_SSH_KEY=`cat /path/to/ssh_key`

Add the buildpack e.g via the pack cli

pack build <image-name> --builder cloudfoundry/cnb:cflinuxfs3 --buildpack /path/to/git-ssh-buildpack -e GIT_SSH_KEY ....

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

Jump to

Keyboard shortcuts

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