Skip to content
Kitsy Docs Open CNOS

CI/CD Pipelines

CI/CD Pipelines

Common patterns:

Terminal window
cnos build env --profile stage --to .env.stage
cnos build public --framework vite --profile stage --to .env.stage
cnos run --profile stage -- pnpm build
cnos build server --profile prod --to dist/.cnos-server.json

For CI-backed vaults:

Terminal window
cnos vault create github-ci --provider github-secrets --no-passphrase
cnos secret set app.token APP_TOKEN --vault github-ci

GitHub Actions example:

- name: Install deps
run: pnpm install --frozen-lockfile
- name: Build CNOS env
run: cnos build env --profile stage --to .env.stage
- name: Build app
run: pnpm build

Use cnos run when you do not need an intermediate env file. Use cnos build env or cnos build public when the build tool or deploy step expects a file artifact.