Skip to content

codewithabhi17/docker-git-checkout

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-git-checkout

A tiny builder container for pulling source from git.

Usage

This container was designed as a builder container within a multi-stage build.

FROM jnovack/git-checkout as builder

# Set environment variables
ENV REPO="http://github.com/jnovack/docker-git-checkout.git"
ENV BRANCH="master"
ENV HASH="HEAD"
RUN /entrypoint.sh


FROM alpine:latest
COPY --from=builder /src /app

Environment Variables

  • REPO - (string, required) A http(s):// or ssh:// git repository url
  • BRANCH - (string, optional) The name of your branch to download. Default: master
  • HASH - (string, optional) The hash of the commit. Default: HEAD
  • SSH_PRIVATE_KEY - (string, optional) SSH private key for authenticated repository download

About

Basic git checkout side container

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 80.5%
  • Makefile 19.5%