Make sure you have Gitmoxi up and running before proceeding further. If you have followed the previous steps to install Gitmoxi then you should have the GITMOXI_ENDPOINT_URL
environment variable setup.
echo $GITMOXI_ENDPOINT_URL
We have provided ECS and Lambda sample applications in gitmoxi/gm-demo repository. This repository has:
We will create a private repository in your GitHub user account, copy these sample files, and perform deployments securely using the private repository.
gm-trial
in your GitHub accountNote to set the correct GitHub user name in the environment variable.
export GITHUB_USER_NAME=<your-github-username>
Clone the gm-demo
repository, copy the files and push to your gm-trial
private repository.
cd ~/
git clone git@github.com:gitmoxi/gm-demo.git
cd gm-demo
git remote remove origin
git remote add origin git@github.com:$GITHUB_USER_NAME/gm-trial
git branch -M main
git push -u -f origin main
Check that the new repository has folders named ecs
, eks
, and lambda
in the GitHub web console. Now we can add your private GitHub repository to Gitmoxi for GitOps.
export GITMOXI_DEMO_REPO=https://github.com/$GITHUB_USER_NAME/gm-trial
gmctl repo add -r $GITMOXI_DEMO_REPO -b main -a GITHUB_TOKEN
gmctl repo get
You should see your gm-demo
repository added.
Next, you can test any or all of the following services for GitOps-based deployments.
Experience the power of Gitmoxi — your go-to solution for simple, flexible, and transparent deployment management