Skip to content

junte/docker-git-secret

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Git Secret (Docker Image)

This repository tracks the Dockerfile and build/release scripts needed to maintain a docker image for git-secret.

I needed this primarily because I wanted to use git secret on a Travis CI build, but I could not install the gpg version I needed (2.2+) to maintain consistency with my personal development environments.

Info

Image contains:

  • Ubuntu: 18.04
  • gpg: 2.2
  • git-secret: 0.5.0

Usage

Reveal

docker run \
 -it \
 --rm \
 -v "$(pwd)/gpg:/gpg" \
 -v "$(pwd):$(pwd)" \
 -w "$(pwd)" \
 ghcr.io/junte/docker-git-secret:0.5.0 \
 bash -c "gpg --batch --import /gpg/secret.gpg && git secret reveal -v -P -f" 

Hide

docker run \
 --rm \
 -v "$(pwd)/gpg:/gpg" \
 -v "$(pwd):$(pwd)" \
 -w "$(pwd)" \
 ghcr.io/junte/docker-git-secret:0.5.0 \
 bash -c "gpg --batch --import /gpg/secret.gpg && gpg --list-key && git secret hide -P -m" 

About

Git Secret Dockerized

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Makefile 51.6%
  • Dockerfile 48.4%