Skip to content

A docker image that can be used to (git) push code from docker-in-docker

Notifications You must be signed in to change notification settings

claudyus/dind-ci-push

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

dind-ci-push

A docker image that can be used to (git) push code from docker-in-docker

Who to use

You can use this image to push your code from a CI system to a ssh endpoint.

Here some example, assuming gitlab-ci:

deploy_stage:
  image: claudyus/dind-ci-push
  script:
    - /ssh/config.sh   # run the config script provided by docker image
    - git push -f <some_git_remote>  #  smooth deploy

The configuration script will use the following env variables:

* SSH_PRIVATE_KEY: The private ssh key to use
* KNOW_HOSTS_LINE: (optional) The public key for the host, if not set host key checking will be disabled. To generate the correct know_hosts line use ```ssh-keyscan -t rsa -H <hostname_of_remote>```

About

A docker image that can be used to (git) push code from docker-in-docker

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages