Skip to content

crane: push should output ref to stdout #1514

@thesayyn

Description

@thesayyn

Describe the bug

Currently, in order to get digest ref to the pushed image, one has to use --image-refs option introduced in #1217

There's already a TODO in the relevant code for this;

// TODO(mattmoor): think about printing the digest to standard out
// to facilitate command composition similar to ko build.

To Reproduce

Expected behavior

crane push should output to stdout like

Additional context

Add any other context about the problem here.

  • Output of crane version
  • Registry used (e.g., GCR, ECR, Quay)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions