Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
Shay Bergmann committed Jan 22, 2021
1 parent ca8c00a commit d40dff6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions lib/mk-hashi-stack.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,12 @@ let

# "Expands" a docker image into a set which allows for docker commands
# to be easily performed. E.g. ".#dockerImages.$Image.push
imageAttrToCommands = key: image: {
inherit image;

imageAttrToCommands = key: image: let
id = "${image.imageName}:${image.imageTag}";
in {
inherit id image;

outPath = id;

push = let
parts = builtins.split "/" image.imageName;
Expand Down
2 changes: 1 addition & 1 deletion lib/mk-nomad-job.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ let
(map (x: x.Tasks))
builtins.concatLists
(map (y: if y.Driver == "docker" then {
name = builtins.unsafeDiscardStringContext y.Config.image.id;
name = builtins.unsafeDiscardStringContext y.Config.image;
value = y.Config.image.image;
} else null))
(lib.filter (value: value != null))
Expand Down

0 comments on commit d40dff6

Please sign in to comment.