diff --git a/daisy_workflows/build-publish/sqlserver/sql-2022-express-windows-2022-dc.wf.json b/daisy_workflows/build-publish/sqlserver/sql-2022-express-windows-2022-dc.wf.json index 4c38eae8f..97d2a96aa 100644 --- a/daisy_workflows/build-publish/sqlserver/sql-2022-express-windows-2022-dc.wf.json +++ b/daisy_workflows/build-publish/sqlserver/sql-2022-express-windows-2022-dc.wf.json @@ -51,7 +51,7 @@ "build": { "Timeout": "${timeout}", "IncludeWorkflow": { - "Path": "${workflow_root}/image_build/sqlserver/sql-2017-express-windows-2022-dc.wf.json", + "Path": "${workflow_root}/image_build/sqlserver/sql-2022-express-windows-2022-dc.wf.json", "Vars": { "build_date": "${TIMESTAMP}", "install_disk": "disk-install", diff --git a/daisy_workflows/image_build/sqlserver/sql-2022-express-windows-2022-dc.wf.json b/daisy_workflows/image_build/sqlserver/sql-2022-express-windows-2022-dc.wf.json new file mode 100644 index 000000000..15c5009da --- /dev/null +++ b/daisy_workflows/image_build/sqlserver/sql-2022-express-windows-2022-dc.wf.json @@ -0,0 +1,75 @@ +{ + "Name": "sql-2022-express-windows-2022-dc-image-build", + "Vars": { + "build_date": "${TIMESTAMP}", + "install_disk": "disk-install", + "publish_project": "${PROJECT}", + "sql_server_media": { + "Required": true, + "Description": "GCS or local path to Windows installer media" + }, + "source_image_project": { + "Value": "windows-cloud", + "Description": "Project to source base image from." + }, + "ssms_exe": { + "Required": true, + "Description": "GCS or local path to SSMS installer" + }, + "timeout": { + "Value": "2h", + "Description": "The timeout to set for the image build." + }, + "sbom_destination": { + "Value": "${OUTSPATH}/export-image.sbom.json", + "Description": "The GCS url that the sbom file exported to." + }, + "sbom_util_gcs_root": { + "Value": "", + "Description": "The root gcs bucket for sbomutil, if using sbomutil to generate the SBOM." + }, + "img_family": { + "Value": "sql-exp-2022-win-2022", + "Description": "The image family and component name for the sbom." + } + }, + "Steps": { + "build-sql-image": { + "TimeOut": "${timeout}", + "IncludeWorkflow": { + "Path": "./sqlserver.wf.json", + "Vars": { + "sql_server_config": "./configs/sql_server_2022.ini", + "sql_server_media": "${sql_server_media}", + "source_image": "projects/${source_image_project}/global/images/family/windows-2022", + "install_disk": "${install_disk}", + "ssms_exe": "${ssms_exe}", + "timeout": "${timeout}", + "sbom_destination": "${sbom_destination}", + "sbom_util_gcs_root": "${sbom_util_gcs_root}", + "img_family": "${img_family}" + } + } + }, + "create-image": { + "CreateImages": [ + { + "Name": "sql-2022-enterprise-windows-2022-dc-v${build_date}", + "SourceDisk": "${install_disk}", + "Licenses": [ + "projects/windows-sql-cloud/global/licenses/sql-server-2022-express" + ], + "Description": "Microsoft, SQL Server 2022 Enterprise, on Windows Server 2025, x64 built on ${build_date}", + "GuestOsFeatures": ["MULTI_IP_SUBNET", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC"], + "Family": "${img_family}", + "Project": "${publish_project}", + "NoCleanup": true, + "ExactName": true + } + ] + } + }, + "Dependencies": { + "create-image": ["build-sql-image"] + } +} diff --git a/daisy_workflows/image_build/sqlserver/sql-2022-express-windows-2025-dc.wf.json b/daisy_workflows/image_build/sqlserver/sql-2022-express-windows-2025-dc.wf.json new file mode 100644 index 000000000..22b9b098f --- /dev/null +++ b/daisy_workflows/image_build/sqlserver/sql-2022-express-windows-2025-dc.wf.json @@ -0,0 +1,75 @@ +{ + "Name": "sql-2022-express-windows-2025-dc-image-build", + "Vars": { + "build_date": "${TIMESTAMP}", + "install_disk": "disk-install", + "publish_project": "${PROJECT}", + "sql_server_media": { + "Required": true, + "Description": "GCS or local path to Windows installer media" + }, + "source_image_project": { + "Value": "windows-cloud", + "Description": "Project to source base image from." + }, + "ssms_exe": { + "Required": true, + "Description": "GCS or local path to SSMS installer" + }, + "timeout": { + "Value": "2h", + "Description": "The timeout to set for the image build." + }, + "sbom_destination": { + "Value": "${OUTSPATH}/export-image.sbom.json", + "Description": "The GCS url that the sbom file exported to." + }, + "sbom_util_gcs_root": { + "Value": "", + "Description": "The root gcs bucket for sbomutil, if using sbomutil to generate the SBOM." + }, + "img_family": { + "Value": "sql-exp-2022-win-2025", + "Description": "The image family and component name for the sbom." + } + }, + "Steps": { + "build-sql-image": { + "TimeOut": "${timeout}", + "IncludeWorkflow": { + "Path": "./sqlserver.wf.json", + "Vars": { + "sql_server_config": "./configs/sql_server_2022.ini", + "sql_server_media": "${sql_server_media}", + "source_image": "projects/${source_image_project}/global/images/family/windows-2025", + "install_disk": "${install_disk}", + "ssms_exe": "${ssms_exe}", + "timeout": "${timeout}", + "sbom_destination": "${sbom_destination}", + "sbom_util_gcs_root": "${sbom_util_gcs_root}", + "img_family": "${img_family}" + } + } + }, + "create-image": { + "CreateImages": [ + { + "Name": "sql-2022-express-windows-2025-dc-v${build_date}", + "SourceDisk": "${install_disk}", + "Licenses": [ + "projects/windows-sql-cloud/global/licenses/sql-server-2022-express" + ], + "Description": "Microsoft, SQL Server 2022 Express, on Windows Server 2025, x64 built on ${build_date}", + "GuestOsFeatures": ["MULTI_IP_SUBNET", "UEFI_COMPATIBLE", "VIRTIO_SCSI_MULTIQUEUE", "WINDOWS", "GVNIC"], + "Family": "${img_family}", + "Project": "${publish_project}", + "NoCleanup": true, + "ExactName": true + } + ] + } + }, + "Dependencies": { + "create-image": ["build-sql-image"] + } +}