CI/CD Pipelines
CI/CD Pipelines
Common patterns:
cnos build env --profile stage --to .env.stagecnos build public --framework vite --profile stage --to .env.stagecnos run --profile stage -- pnpm buildcnos build server --profile prod --to dist/.cnos-server.jsonFor CI-backed vaults:
cnos vault create github-ci --provider github-secrets --no-passphrasecnos secret set app.token APP_TOKEN --vault github-ciGitHub 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 buildUse 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.