Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.89 KB

File metadata and controls

51 lines (37 loc) · 1.89 KB

cs generate images

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 '/-:latest'. For the nginx router it uses '/-cs-router:latest'. If the imagePrefix is not set, it uses '/:latest'.

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")
  -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