Skip to content

getting the version ID after cog push #802

Open
@zeke

Description

@zeke

In situations where cog push is being run in an automated fashion, it's useful to be able to get the id of the published version.

The version id is present in the output (see latest: digest: sha256:7507bda...) below), but maybe there's a nicer way to return it, or make it more obvious what it is.

$ cog push
Building Docker image from environment in cog.yaml as r8.im/zeke/haiku-multi-output...
d38adf39e1dd: Layer already exists 
4ed121b04368: Layer already exists 
d9d07d703dd5: Layer already exists 
...
latest: digest: sha256:7507bdae030fd2a0948b7e63337bd08147a3e137d0ea420612d01f9d838883c6 size: 3269
Image 'r8.im/zeke/haiku-multi-output' pushed

Run your model on Replicate:
    https://replicate.com/zeke/haiku-multi-output

cc @tstramer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions