You may choose any central git repository though it will need to be able to fire the same kind of trigger as GitHub or GitLab when a push occurs. So we highly recommend that you one of these. And if the idea of creating a public repository does not work for you, then either pay for the ability to create private repositories in GitHub or use GitLab which has free private repositories. LANSA's demonstration repositories are all private.
The rest of this section refers to using GitHub to setup. If you are using GitLab it's quite similar.
1. Create or login to your GitHub account.
The type of GitHub account dictates what security options are available for auto-deployment machines.
- If your repository is to be public, then a Personal account is all that you need.
- If your repository is to be Private and therefore you want to restrict access by the target machine to read-only, then a Personal account requires that you have a unique SSH key for each target machine and that machine can only be the target of one GitHub repository. For a simple setup this is fine, but when you extend this to many target machines the management of the keys becomes more complex.
- To allow a single read-only SSH key for all target machines and multiple repositories on a single target machine, a GitHub Organisational account is required.
2. Create an empty repository. The names that the LANSA demonstration uses indicate the target location and the partition. DO NOT initialize with a README otherwise the commit will stop a later push to the repo. There is no need to add a license or add ".gitignore". as you will be importing an existing repository. The example shows Private repository selected. To use this option you will need to pay for the ability. It may suit your organisation better if you choose a private repository. Here is an example of the repository settings:
3. Once you have created the repository a screen of choices will be presented for how to continue with your repository. Take the first option - the Quick Setup option - by clicking on the indicated button to copy the git repository address:

