From 9f75e20093a11d97c33f3b546cff2a49432324fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Kutryj?= Date: Wed, 4 Feb 2026 14:12:50 +0100 Subject: [PATCH] toil(front): update default from ubuntu2004 to ubuntu2204 --- front/lib/front_web/controllers/project_controller.ex | 4 ++-- front/lib/front_web/controllers/workflow_controller.ex | 4 ++-- front/test/front/models/agent_type_test.exs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/front/lib/front_web/controllers/project_controller.ex b/front/lib/front_web/controllers/project_controller.ex index bdf17673a..62aef7e09 100644 --- a/front/lib/front_web/controllers/project_controller.ex +++ b/front/lib/front_web/controllers/project_controller.ex @@ -271,12 +271,12 @@ defmodule FrontWeb.ProjectController do %{ agent_types: combined, - # We want new pipelines constructed through the Workflow Editor to use ubuntu2004 + # We want new pipelines constructed through the Workflow Editor to use ubuntu2204 # as the default OS image for Linux. However, to avoid breaking builds, Zebra still # uses ubuntu1804 as the default one if you don't specify anything in your YAML. # Once we deprecate the Ubuntu 18.04 image, we should be able to remove this hardcoded # value from here and use hosted_agent_types.default_linux_os_image again. - default_linux_os_image: "ubuntu2004", + default_linux_os_image: "ubuntu2204", default_mac_os_image: hosted_agent_types.default_mac_os_image } end diff --git a/front/lib/front_web/controllers/workflow_controller.ex b/front/lib/front_web/controllers/workflow_controller.ex index c779d12e8..a3d9fcccd 100644 --- a/front/lib/front_web/controllers/workflow_controller.ex +++ b/front/lib/front_web/controllers/workflow_controller.ex @@ -456,12 +456,12 @@ defmodule FrontWeb.WorkflowController do %{ agent_types: combined, - # We want new pipelines constructed through the Workflow Editor to use ubuntu2004 + # We want new pipelines constructed through the Workflow Editor to use ubuntu2204 # as the default OS image for Linux. However, to avoid breaking builds, Zebra still # uses ubuntu1804 as the default one if you don't specify anything in your YAML. # Once we deprecate the Ubuntu 18.04 image, we should be able to remove this hardcoded # value from here and use hosted_agent_types.default_linux_os_image again. - default_linux_os_image: "ubuntu2004", + default_linux_os_image: "ubuntu2204", default_mac_os_image: hosted_agent_types.default_mac_os_image } end diff --git a/front/test/front/models/agent_type_test.exs b/front/test/front/models/agent_type_test.exs index 90825dc6e..31c6b85cf 100644 --- a/front/test/front/models/agent_type_test.exs +++ b/front/test/front/models/agent_type_test.exs @@ -20,7 +20,7 @@ defmodule Front.Models.AgentTypeTest do {:ok, agent_type_list} = AgentType.list(org_id) assert %{ - default_linux_os_image: "ubuntu2004", + default_linux_os_image: "ubuntu2204", default_mac_os_image: "macos-xcode13" } = agent_type_list