corgi ci init
corgi ci init
Write a starter pipeline that boots the whole stack and runs its e2e
Synopsis
Write the pipeline that boots this compose in CI and runs the stack's e2e suite against it, for GitHub Actions or GitLab CI.
The provider is taken from the git remote when --provider is omitted. Existing files are never overwritten without --force.
GitHub gets .github/workflows/stack-e2e.yml, which installs corgi through the official action and reads the cache plan from its outputs.
GitLab gets .gitlab-ci.yml, which includes corgi's published job template, plus
.gitlab/corgi-cache.yml generated from this compose — GitLab cannot read the
plan at runtime, so it is committed and guarded by
corgi cache paths --gitlab --check.
The result is a starting point: it still needs the runner tags, the secrets, and the participating repos of this workspace.
Examples: corgi ci init corgi ci init --provider gitlab corgi ci init --provider github --force
corgi ci init [flags]
Options
--force Overwrite files that already exist
-h, --help help for init
--provider string github or gitlab; detected from the git remote when omitted
Options inherited from parent commands
--describe Describe contents of corgi-compose file
--dockerContext string Specify docker context to use, can be default,orbctl,colima (default "default")
-l, --exampleList List examples to choose from. Click on any example to download it
-f, --filename string Custom filepath for for corgi-compose
--fromScratch Clean corgi_services folder before running
-t, --fromTemplate string Create corgi service from template url
--fromTemplateName string Create corgi service from template name and url
-g, --global Use global path to one of the services
--interactive Force interactive prompts even when no TTY/agent detected
--isolate string Run this workspace under a named lease: own port block, own database names, own containers
--json Emit machine-readable JSON output
--privateToken string Private token for private repositories to download files
-o, --runOnce Run corgi once and exit
--silent Hide all welcome messages
SEE ALSO
- corgi ci - Wire this workspace into a CI pipeline