Skip to content

Commit cadfa9c

Browse files
fix: add OCI labels to container image for GHCR repo linking
The GHCR package was not linked to the repository, causing `permission_denied: write_package` errors even with packages:write. Adding org.opencontainers.image.source label auto-links the image to the repo on push.
1 parent 8214a2d commit cadfa9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nix/docker.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ pkgs.dockerTools.buildLayeredImage {
2828
User = "${uid}:${gid}";
2929
Cmd = [ "/bin/server" ];
3030
ExposedPorts."4000/tcp" = { };
31+
Labels = {
32+
"org.opencontainers.image.source" = "https://github.com/jordangarrison/greenlight";
33+
"org.opencontainers.image.description" = "Greenlight - GitHub Actions workflow visualizer";
34+
};
3135
Env = [
3236
"PHX_SERVER=true"
3337
"GREENLIGHT_LISTEN_ADDRESS=0.0.0.0"

0 commit comments

Comments
 (0)