cs generate images
Generated from CS CLI version v1.55.0.
Builds and pushes container images from the output folder of the generate docker command.
Synopsis
The generated images will be pushed to the specified registry.
As the image name it uses '
cs generate images [flags]
Examples
# Generate images and push them to yourRegistry
$ cs generate images -r yourRegistry
# Build images and push them to yourRegistry with a custom image prefix
$ cs generate images -r yourRegistry -p customImagePrefix
Options
-h, --help help for images
-p, --imagePrefix string Image prefix to use for the exported images
-r, --registry string Registry to push the resulting images to
Options inherited from parent commands
-a, --api string URL of Codesphere API (can also be CS_API)
--branch string Branch of the repository to clone if the input file is not found (default "main")
-f, --force Overwrite any files if existing
-i, --input string CI profile to use as input for generation, relative to repository root (default "ci.yml")
-g, --org string Organization ID (relevant for some commands)
-o, --output string Output path of the folder including generated artifacts, relative to repository root (default "export")
--reporoot string root directory of the workspace repository to export. Will be used to clone the repository if it doesn't exist. (default "./workspace-repo")
-t, --team int Team ID (relevant for some commands, can also be CS_TEAM_ID) (default -1)
-v, --verbose Verbose output
-w, --workspace int Workspace ID (relevant for some commands, can also be CS_WORKSPACE_ID) (default -1)
SEE ALSO
- cs generate - Generate codesphere artifacts