Before you can add your git repository to dis.co there are a couple steps you will need.
Using the SSH protocol, you can connect and authenticate to remote servers and services. With SSH keys, you can connect to GitHub without supplying your username or password at each visit.
You can use either an ssh key or a deploy key.
A deploy key is an SSH key that grants access to a single repository.
It can also be set as a readonly access key to the repository.
You can can use github's excellent guide on how to generate and add your ssh key to github:
And you can use the next links to read further about deploy keys:
Later you will need to add your private key to dis.co's configuration.
In the Dis.co Jobs view, click your profile avatar, then choose Settings:
Click the Repositories tab.
Click Add Repository.
Provide details of your repository to allow Dis.co to access it.
Type in the Git URL (in SSH format, for example, firstname.lastname@example.org:Iqoqo/job-example-git.git). You can find the ssh format of the repository on the repository main page under the button "Clone or download", you may need to press the "use ssh" button and copy the URL.
Type in a display name.
Type or paste in your private SSH key, beginning -----BEGIN RSA PRIVATE KEY-----. If you don't know what is ssh key please consult with the prerequisites section of this document. If you already have an ssh key, please copy the content of the private ssh key file. SSH files come in pairs, private and public. The file for the public key has a pub suffix, the private has no suffix.
Your Git repository is finally added to the list of repositories. You can press the 3 dots button (...) on the right of the table to open more options such as:
Edit repository display name.
You can run a script from your pre-configured Git repository.
In the Jobs page, click New job.
The New job form is displayed.
In the Script section, at the bottom choose a repository.
Add the path to the script you want to run from your repository.
At the top of the form, type in the job name and choose the cloud and job size.
(Optionally) Add data files and constant files.
Click Create job.