Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rocky linux accelerator images with nvidia 550 to the pipelines #1324

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion concourse/pipelines/linux-image-build.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ local lego = import '../templates/lego.libsonnet';
local envs = ['testing', 'prod'];
local underscore(input) = std.strReplace(input, '-', '_');

local trim_strings(s, trim) =
if std.length(trim) == 0 then
s
else
trim_strings(std.strReplace(s, trim[0], ''), trim[1:]);

local imgbuildtask = daisy.daisyimagetask {
gcs_url: '((.:gcs-url))',
sbom_destination: '((.:sbom-destination))',
Expand Down Expand Up @@ -162,7 +168,7 @@ local elimgbuildjob = imgbuildjob {

workflow_dir: 'enterprise_linux',
sbom_util_secret_name:: 'sbom-util-secret',
isopath:: std.strReplace(std.strReplace(std.strReplace(tl.image, '-byos', ''), '-sap', ''), '-nvidia-latest', ''),
isopath:: trim_strings(tl.image, ['-byos', '-sap', '-nvidia-latest', '-nvidia-550']),

// Add tasks to obtain ISO location and sbom util source
// Store those in .:iso-secret and .:sbom-util-secret
Expand Down Expand Up @@ -446,6 +452,8 @@ local imggroup = {
local rocky_linux_accelerator_images = [
'rocky-linux-8-optimized-gcp-nvidia-latest',
'rocky-linux-9-optimized-gcp-nvidia-latest',
'rocky-linux-8-optimized-gcp-nvidia-550',
'rocky-linux-9-optimized-gcp-nvidia-550',
],

// Start of output.
Expand Down