File tree Expand file tree Collapse file tree 2 files changed +28
-14
lines changed
Expand file tree Collapse file tree 2 files changed +28
-14
lines changed Original file line number Diff line number Diff line change 77 l = nixpkgs . lib // builtins ;
88
99 mkOCI = namespace : let
10- rev =
11- if ( inputs . self ? rev )
12- then inputs . self . rev
13- else "dirty" ;
14- in
15- std . lib . ops . mkStandardOCI {
10+ # TODO: fix git rev
11+ # rev =
12+ # if ( inputs.self ? rev)
13+ # then inputs.self.rev
14+ # else "dirty";
15+ image = std . lib . ops . mkStandardOCI {
1616 name = "${ constants . registry } /jormungandr" ;
17- tag = "${ rev } -${ namespace } " ;
17+ # tag = "${rev}-${namespace}";
1818 operable = cell . operables . "jormungandr-${ namespace } " ;
1919 debug = true ;
2020 } ;
21+ in
22+ image
23+ // {
24+ imageTag = let
25+ hash = l . head ( l . strings . splitString "-" ( baseNameOf image . outPath ) ) ;
26+ in "${ hash } -${ namespace } " ;
27+ } ;
2128in
2229 { }
2330 // lib . mapToNamespaces "jormungandr" mkOCI
Original file line number Diff line number Diff line change 77 l = nixpkgs . lib // builtins ;
88
99 mkOCI = namespace : let
10- rev =
11- if ( inputs . self ? rev )
12- then inputs . self . rev
13- else "dirty" ;
14- in
15- std . lib . ops . mkStandardOCI {
10+ # TODO: fix git rev
11+ # rev =
12+ # if ( inputs.self ? rev)
13+ # then inputs.self.rev
14+ # else "dirty";
15+ image = std . lib . ops . mkStandardOCI {
1616 name = "${ constants . registry } /vit-servicing-station-server" ;
17- tag = "${ rev } -${ namespace } " ;
17+ # tag = "${rev}-${namespace}";
1818 operable = cell . operables . "vit-servicing-station-server-${ namespace } " ;
1919 debug = true ;
2020 } ;
21+ in
22+ image
23+ // {
24+ imageTag = let
25+ hash = l . head ( l . strings . splitString "-" ( baseNameOf image . outPath ) ) ;
26+ in "${ hash } -${ namespace } " ;
27+ } ;
2128in
2229 { }
2330 // lib . mapToNamespaces "vit-servicing-station-server" mkOCI
You can’t perform that action at this time.
0 commit comments