Sign inSign up

claudyus/dind-ci-push

By claudyus

Updated about 8 years ago

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

Image
0

10K+

claudyus/dind-ci-push repository overview

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>

Tag summary

Content type

Image

Digest

Size

11.7 MB

Last updated

about 8 years ago

docker pull claudyus/dind-ci-push