From e9633d0d583e0ae9552b86bd054982ca90796ec3 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Fri, 15 Feb 2019 14:04:57 +0100 Subject: [PATCH] add label to all CLI images Try this out. These labels are used by Docker Hub to link back to the repository. --- lib/buildCLIImage.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/buildCLIImage.nix b/lib/buildCLIImage.nix index 24c8515..6c3eee4 100644 --- a/lib/buildCLIImage.nix +++ b/lib/buildCLIImage.nix @@ -23,5 +23,9 @@ dockerTools.buildLayeredImage { "PATH=/bin" "SSL_CERT_FILE=${cacert}/etc/ssl/certs/ca-bundle.crt" ]; + Labels = { + "org.label-schema.vcs-ref" = "master"; + "org.label-schema.vcs-url" = "https://github.com/nix-community/docker-nixpkgs"; + }; }; }