We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8f6f70 commit fde88e5Copy full SHA for fde88e5
src/std/fwlib/blockTypes/containers.nix
@@ -63,6 +63,15 @@ in
63
(mkCommand currentSystem "publish" "copy the image to its remote registry" [skopeo-nix2container] ''
64
${copyFn}
65
copy docker://${target.image.repo}
66
+
67
+ # Get the digest of the published image
68
+ DIGEST=$(skopeo inspect --raw docker://${target.image.repo}:${builtins.head target.image.tags} | jq -r '.manifests[0].digest')
69
70
+ # Conditionally output the name and digest for GitHub Actions
71
+ if [ -n "$GITHUB_OUTPUT" ]; then
72
+ echo "name=${target.image.repo}" >> $GITHUB_OUTPUT
73
+ echo "digest=$DIGEST" >> $GITHUB_OUTPUT
74
+ fi
75
'' {
76
meta.image = target.image.name;
77
inherit proviso;
0 commit comments