kosa8 cloud pipelines run
Start a pipeline run of a repository (OWNER/NAME of a connected GitHub repo, or a clone URL)
Usage#
kosa8 cloud pipelines run REPO
A GitHub repo of your connection (kosa8 github repos), as OWNER/NAME or its URL, needs no token: the kosa8 GitHub App clones it with a read-only token for that one run and reports the result on the commit as a check run.
--secret NAME hands a secret marked --pipelines to every job as an environment variable (npm-token becomes NPM_TOKEN). --token-secret names the secret that clones a private repository outside the connection; --status-secret the one that posts commit statuses. --follow streams the logs until the run ends and exits non-zero if it failed.
Options#
| Flag | Type | What it does | Default |
|---|---|---|---|
--event | string | workflow_dispatch (the default: a manual run), push, pull_request or schedule; the workflow's on: must list it | — |
-f, --follow | bool | stream the logs until the run ends | — |
--input | stringArray | a workflow_dispatch input, name=value (repeatable) | [] |
--job | string | only this job | — |
--ref | string | branch, tag or commit (default: the default branch) | — |
--secret | stringArray | hand this secret (marked --pipelines) to the jobs (repeatable) | [] |
--size | string | sandbox size for each job, e.g. 4x8 | — |
--status-secret | string | the secret that posts commit statuses | — |
--timeout | duration | stop the run after this long (default 1h, at most 6h) | 0s |
--token-secret | string | the secret that clones a private repository outside your GitHub connection | — |
--workflow | string | only this file in .github/workflows | — |
Example#
kosa8 cloud pipelines run acme/app kosa8 cloud pipelines run https://github.com/acme/app --ref v1.2 --job test --size 4x8 --follow kosa8 cloud pipelines run https://github.com/acme/app --event workflow_dispatch --workflow release.yml --input version=1.2