Builds and pushes container images from the output folder of the generate docker command.
The generated images will be pushed to the specified registry. As the image name it uses '/-:latest'. For the nginx router it uses '/-cs-router:latest'. If the imagePrefix is not set, it uses '/:latest'.
cs generate images [flags]
# 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
-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
-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")
-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)
- cs generate - Generate codesphere artifacts