Limio Custom Components aim to put your development team in the driver seat's, enabling them to use the tools they already know and a CI process to release changes in a controlled environment.
In this tutorial we will be using CircleCI but any similar tool should be able to replicate this flow.
To get started you will need to make a Limio Support Request to gain Component Repository Credentials. This will give you the required access keys to access the repository and in turn connect your CI instance.
The easiest way to then mirror your repository using a Cron Job in your CI pipeline, though different tool packages can allow you to use Triggers, to duplicate your repository on pushes to specific branches in your GitHub repository.
Which ever way you choose to execute your mirroring process you can now use the Limio provided Credentials paired with the GitHub API Key to run a scripting process using tools like Python to clone your repository.
Your YAML file for CI should look something like this:
This will be the file that will setup your credentials with your Limio Components Repository, this should look like this:
# Add CodeCommit to SSH Configuration# see https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-without-cli.html#setting-up-without-cli-configure-client
echo"Host git-codecommit.*.amazonaws.com User $1 IdentityFile /home/circleci/.ssh/id_rsa">>/home/circleci/.ssh/config# Add CodeCommit Server as Known Hostssh-keyscan-Hgit-codecommit.us-east-1.amazonaws.com>>~/.ssh/known_hosts
clone.js
This will be your work file that will do the cloning of the repository, while Node is used in this example any scripting language can be used, an example of how this looks is as follows. Notice it uses a clean up job the delete the local repository after the sync job is complete: