Continuous Integration / Continuous Deployment (CI/CD) Quickstart
Quickstart
Setting up CI/CD with lyrid consists of three main steps:
Example
Here is an example of a shell script in linux you can copy and paste that can be used for your pipeline. You can modify as necessary to fit the CI/CD framework you are using.
Sample Github Pipeline Script
mkdir -p ~/lyrid_deployment
cd ~/lyrid_deployment
curl https://api.lyrid.io/client/dl/linux --output /usr/local/bin/lc && chmod +x /usr/local/bin/lc
lc config add --config lyrid_deployment_config_name --key <YOUR KEY> --secret <YOUR SECRET>
git clone https://<YOUR_GITHUB_REPO>.git
cd ./<YOUR REPO NAME>
lc code submit --rid apsoutheast1
tip
This is strictly for linux machines, you can adjust to a different machine with the same logic.
note
Don't forget to replace these variables:
YOUR KEY
- Your access keyYOUR SECRET
- Your secretYOUR GITHUB REPO
- Github repo to deployYOUR REPO NAME
- Repo name to make sure you are running the submit within root directory