Skip to content

rgynn/bob

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bob

Experimental package to:

  1. Git clone repo
  2. Archive it
  3. Build docker image
  4. Push docker image to a repo

Install as cli:

go install github.com/rgynn/bob/cmd/bob@v0.0.6

Usage:

Usage of bob:
  -docker-image string
        docker image to push
  -git-commit string
        git commit to checkout from repository and tag docker image with
  -git-repo string
        git repository to checkout
  -git-ssh-key string
        base64 encoded string of key to checkout repository with
  -p string
        docker repository password to push with
  -tags string
        additional tags to push docker image with
  -timeout duration
        timeout for job (default 5m0s)
  -u string
        docker repository user to push with (default "00000000-0000-0000-0000-000000000000")

Using said cli:

bob -git-ssh-key $GIT_SSH_KEY -git-repo $GIT_REPOSITORY -git-commit $GIT_COMMIT_HASH -docker-image $DOCKER_REGISTRY/$DOCKER_IMAGE -p $DOCKER_REGISTRY_AUTH_TOKEN

About

Experimental package to git clone repo, compress it, build in docker daemon, push image to repo

Resources

Stars

Watchers

Forks

Languages