GitOps
Provides instructions to set up GitOps
Last updated
Provides instructions to set up GitOps
Last updated
To allow your application constantly sync with Planeo, we will first need to setup a git action workflow. This workflow will allow every commit in your repository to update your service with the latest code
Step 1: First download the git action file from Planeo by running the command
Step 2: Take the file and commit it into your repository in the following location .github/workflows/
Now Git changes will trigger a deploy to your service in Planeo. Read this for more information on Github Action workflows https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions.
Step 3: In your github repository's settings, add two repository secrets, WEBHOOK_SECRET
and WEBHOOK_URL
For the WEBHOOK_URL
enter https://api.planeo.dev/buildImage
.
The value of the WEBHOOK_SECRET
is obtained by running the command