An example to push configuration with CI/CD
- Switch to your desired team
- In Dashboard > API section, click "Issue API key"
- Scopes:
configuration:writeis always required- Then, for each resource type that you want to manage, select its
writescope, e.g.cronjob:write
- Note the key in a secure place, the UI only shows it once
- The recommended file name is
crystade.yml - Have a look at crystade.yml
- Endpoint:
POST https://integration.crystade.com/configuration - Header:
Authorization: Bearer {API token} - Header:
Content-Type: application/yaml - Body: the configuration in YAML
- NOTE: Keep your secret secure (e.g. using .env)
- Have a look at push.sh and push.bat (for Windows). You need to create
.envat the same directory as the script file
TOKEN=your_api_token
- NOTE: Use GitHub built-in secrets vault for API keys
- Have a look at .github/workflows/push.yml
- Push configuration is compatible to any CI/CD systems such as GitLab, Jenkins, etc
- After a successful push, in Crystade Web UI, you can observe new managed resources (readonly)
Feel free to email us at
support@crystade.comfor support

