kx712.yml is an optional file, placed at the root of the repository. It does two things: it filters the pushes that trigger a build, and it runs checks (tests, lint) before each release. Without this file, every push to the tracked branch triggers a build, with no checks.
The syntax resembles GitHub Actions but is not compatible with it. Only the fields described here exist.
Full example
on:
push:
branches: [main] # ignore pushes to other branches
paths: [backend/**] # ignore a push that touches none of these files
checks: # run before the image is built
- name: Tests
run: npm ci && npm test
- name: Lint
run: |
npm ci
npm run lint -- --max-warnings=0
image: node:22-alpine # optional, node:22-alpine by default
Filtering triggers: on.push
| Field | Type | Limit | Effect |
|---|---|---|---|
branches | list of exact names | 20 branches, 120 characters each | A push to another branch is ignored |
paths | list of patterns | 50 patterns, 255 characters each | If no file added, modified or deleted by the push matches, nothing is triggered |
paths patterns follow three rules:
| Pattern | Matches |
|---|---|
* | Any characters within a single folder (*.md matches README.md, not docs/guide.md) |
** | Any characters, including folders (backend/** matches everything under backend/) |
? | A single character, other than / |
branches names are compared as is: release/* is not a pattern and only matches a branch literally named release/*.
These filters only apply to automatic triggers (GitHub or GitLab push). A click on Redeploy, the CLI or the API always build, filters or not.
Example: monorepo
Two services follow the same repository, one for api/, the other for web/. The file is read once per repository: its filters apply to all services that follow this repository. To isolate each service, give them different branches or split the repository. A paths: [api/**, web/**, package.json] filter at least avoids builds on a documentation-only change.
Blocking a bad deployment: checks
Each check is a command, run in order, before the image is built. The first one that fails stops everything: nothing is built or deployed, and the live version stays untouched.
| Field | Required | Limit | Role |
|---|---|---|---|
name | yes | 80 characters | Label shown in the build log |
run | yes | 2,000 characters | Command run by sh, one or more lines |
image | no | 200 characters | Public image for the check's container, node:22-alpine by default |
At most 10 checks per file.
What a check has
- A copy of the commit's sources in
/app, which is also the working directory. - The service's build variables: those of its build environment if it has one, otherwise its general variables (Environment variables).
- The variables
CI=1,NO_COLOR=1andTERM=dumb. - Internet access to install dependencies.
A check starts from scratch on every build: no cache is kept from one build to the next, or from one check to the next. Install the dependencies in each check that needs them (npm ci && npm test).
A check is interrupted after 15 minutes (900 seconds). The build then fails with the message "Check "Tests" interrupted after 900 s".
Choosing the image
checks:
- name: Python tests
run: pip install -r requirements.txt && pytest
image: python:3.12-alpine
- name: Vet
run: go vet ./...
image: golang:1.23-alpine
The image must be public. An image hosted on Webgune's internal registry is refused: the build fails with the "kx712.yml rejected" check rather than going ahead without your verifications.
Reading the result
The output of each check appears in the deployment's build log, under the "CI checks" step. A successful check is marked "Check "Tests" OK". A failure gives "Check "Tests" failed: deployment canceled", followed by the command output.
The General tab of the service shows the CI Pipeline section: the detected file and the checks it declares, or "None" if there are none.
Missing or invalid file
| Case | Behavior |
|---|---|
| No file | No filter, no check: every push to the tracked branch builds |
Unreadable YAML or field outside the schema (jobs:, steps:, 11 checks...) | The whole file is ignored: no filter, no check, deployment proceeds normally |
| Invalid or internal check image | The build fails, nothing is deployed |
An invalid file therefore does not block deployment: your checks simply do not run. After each change, verify in the build log that the "CI checks" step appears, or use Check automatic deployment on the General tab (Continuous deployment).
Good to know
- The file is read at the commit being built: a change to checks applies from the commit that introduces it.
- Checks also run on a manual Redeploy, only the filters are ignored.
- For long tests, a version matrix or artifacts, keep your usual CI.
kx712.ymlis the last check before release.