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

Latest commit

 

History

History
18 lines (13 loc) · 647 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 647 Bytes

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.