What's Changed
This Release adds a new API endpoint to manually trigger Poll jobs.
See also in the wiki.
| Endpoint | Method | Description | Query Parameters |
|---|---|---|---|
/v1/api/poll/run
| POST | Trigger a poll run for all polling targets in the body (JSON). | - wait (boolean, default: true): Wait for the poll run to finish before responding.
|
The request body must be a JSON array of poll configurations, each containing at least a url field containing the Git clone URL to the repository.
The fields run_once and interval will be ignored for poll runs triggered via the API, as they are only relevant for the scheduled poll runs.
Example Request
Minimal example using the default settings:
curl --request POST \
--url 'https://cd.example.com/v1/api/poll/run?wait=true' \
--header 'content-type: application/json' \
--header 'x-api-key: your-api-key' \
--data '[
{
"url": "https://github.com/your/repo.git",
}
]'Example with custom reference and inline deployment configuration:
curl --request POST \
--url 'https://cd.example.com/v1/api/poll/run?wait=true' \
--header 'content-type: application/json' \
--header 'x-api-key: your-api-key' \
--data '[
{
"url": "https://github.com/your/repo.git",
"reference": "dev",
"deployments": [
{
"name": "my-app",
"working_dir": "/app",
"env_files": [
".env"
]
}
]
}
]'✨ Features
🌟 Improvements
- fix(decryption): prevent path traversal in bind mount directories by @kimdre in #1150
- fix(filesystem): improve path traversal detection checks by @kimdre in #1152
📦 Dependencies
Full Changelog: v0.75.0...v0.76.0