jupyterhub / repo2docker-action

A GitHub action to build data science environment images with repo2docker and push them to registries.
MIT License
140 stars 27 forks source link

Specify repo and ref as a docker label #104

Closed yuvipanda closed 1 year ago

yuvipanda commented 1 year ago

repo2docker triest to set these labels automatically, but because we call repo2docker on the local checkout, it doesn't know where the build is coming from.

If you look at a built image, right now you get:

skopeo --override-os linux inspect docker://quay.io/2i2c/cloudbank-data8-image:aa7e0df7adf4

"Labels": {
    ...
    "repo2docker.ref": "",
    "repo2docker.repo": "local",
    "repo2docker.version": "2022.10.0+169.g6250c06"
},

This makes it difficult to trace the built image back to a repo.

We just explicitly set those here.