Skip to content

Commit

Permalink
Merge pull request #890 from adamcstephens/nixos/24.11-prep
Browse files Browse the repository at this point in the history
nixos: correctly handle 24.11
  • Loading branch information
stgraber authored Nov 30, 2024
2 parents 2618b56 + e2a2567 commit 04abbcf
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 04abbcf

Please sign in to comment.