jefersonhuan / docker-git-checkout

Basic git checkout side container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Shell 75.6%Language:Makefile 18.3%Language:Dockerfile 6.0%