Autessa Pipelines
Autessa Pipelines and the deploy API are in preview. Names and shapes may change before they are generally available.
Pipelines run your Autessa CDK project inside Autessa. Push to GitHub, and the pipeline runs build, diff and deploy for each stage in order, with the promotion rule you choose between stages.
When to use it
- You want deploys without writing CI workflows.
- You want run history, approvals and rollback in the same place as your agents and apps.
- You want a release to wait until your evals pass.
Already using GitHub Actions? The deploy action runs the same commands.
Navigating here
Open Build → Pipelines.
Quickstart
- In Build → Pipelines, create a pipeline. Pick the repository and branch.
- Add stages in order, for example
devthenprod. Each stage maps to a stage inautessa.stages.yaml. - Choose a promotion rule between each pair of stages.
- Copy the webhook URL and secret into your GitHub repository's webhook settings, for push events.
- Push a commit. A run starts.
Promotion rules
| Rule | What happens at the stage boundary |
|---|---|
AUTO | The run moves on as soon as the stage deploys. |
AFTER_TESTS | The run moves on only when an eval scorecard meets your threshold, such as a minimum block rate or grading pass rate. See Evaluations. |
MANUAL | A person approves the promotion in the UI. |
Runs
Each run lists its stages in order, with each stage's status, promotion rule and the deployment it created. A stage's status is one of PENDING, RUNNING, WAITING_APPROVAL, SUCCEEDED, FAILED, SKIPPED or ROLLED_BACK. Stages promoted AFTER_TESTS also carry the eval scorecard.
- Promote moves a waiting run on to the named stage.
- Roll back returns a stage to an earlier deployment.
Start a run from your own CI
You can name a Git ref, or upload the project as a .tar.gz (multipart field project), instead of using the webhook. Use a deploy key or an API key.
curl -X POST "https://api.autessa.com/clients/pipelines/V1StGXR8Z5/runs" \
-H "Authorization: $AUTESSA_DEPLOY_KEY" \
-H "Content-Type: application/json" \
-d '{"ref":"main"}'
| Endpoint | What it does |
|---|---|
POST /clients/pipelines/{pipelineId}/webhook/github | The GitHub push webhook. Signed with the pipeline's secret (X-Hub-Signature-256). |
POST /clients/pipelines/{pipelineId}/runs | Start a run from an upload or a ref. |
GET /clients/pipelines/{pipelineId}/runs | List runs. |
GET /clients/pipelines/{pipelineId}/runs/{runId} | Get one run. |
POST /clients/pipelines/{pipelineId}/runs/{runId}/promote | Promote to a stage. Body: {"stage": "prod"}. |
POST /clients/pipelines/{pipelineId}/runs/{runId}/rollback | Roll a stage back. Body: {"stage": "prod"}. |
Full details: Pipelines API.