Skip to content

Commit

Permalink
nixos: correctly handle 24.11
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Stephens <[email protected]>
  • Loading branch information
adamcstephens committed Nov 30, 2024
1 parent 2618b56 commit e2a2567
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions sources/nixos-http.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@ func (s *nixos) Run() error {
hydraProject := "nixos"

hydraJobset := fmt.Sprintf("release-%s", s.definition.Image.Release)
releaseAttr := "lxdContainerImage"
hydraBuildProduct := "system-tarball"
releaseAttr := "incusContainerImage"
hydraBuildProduct := "squashfs-image"

if s.definition.Image.Release == "24.05" {
releaseAttr = "lxdContainerImage"
hydraBuildProduct = "system-tarball"
}

if s.definition.Image.Release == "unstable" {
hydraJobset = "trunk-combined"
releaseAttr = "incusContainerImage"
hydraBuildProduct = "squashfs-image"
}

hydraJob := fmt.Sprintf("nixos.%s.%s-linux", releaseAttr, s.definition.Image.ArchitectureMapped)
Expand Down

0 comments on commit e2a2567

Please sign in to comment.