Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Easily add private SSH keys during your GitLab CI jobs

Notifications You must be signed in to change notification settings

omegacen/docker-gitlabci-easyssh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-ci-easyssh

Easily add private SSH keys during your GitLab CI jobs.

This Docker image reduces the hassle of adding a private SSH key to running Docker containers to one command. This is particularly useful for deploy jobs in GitLab CI, hence the name.

Superseded by https://gitlab.astro-wise.org/omegacen/ci-templates/-/tree/master/dockerfiles/ci-tools.

Usage

While running a container (interactively), you can add a private key as follows:

$ ssh-addkey "${SSH_PRIVATE_KEY}"

where the SSH_PRIVATE_KEY variable contains your private key. You can then either ssh, rsync, or use git to sync to your favorite deploy server.