Skip to content

porter bundle publish command #254

@carolynvs

Description

@carolynvs

We need a new command porter bundle publish, alias porter publish that uses cnabio/duffle#681 to push a bundle to a docker registry.

porter  publish [--file myapp/porter.yaml] [--tag altreg/myapp:tag] [--cnab-file bundle.json]
  • --file defaults to the bundle in the current directory
  • --tag defaults to a tag specified in the porter.yaml. This would be a new manifest field, Tag.
  • --cnab-file is an optional flag (cannot be specified when --file is present), that points to a bundle.json and is used for non-porter bundles only.

We aren't using the push verb because it's a composite command doing multiple bits of work under the hood:

  • This should follow the behavior outlined in Improve abstraction over CNAB #320, namely ensuring that cnab/bundle.json is up-to-date with porter.yaml before pushing, and potentially rebuilding.
  • Push the invocation image.
  • Push the bundle manifest.
  • TODO: I forgot the rest, sorry. Will fill in later.

Metadata

Metadata

Assignees

Labels

0 - 🚨🍩Emergency donuts come first

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions