-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zach Marano
authored
Oct 30, 2024
1 parent
0d9894a
commit af3bcf4
Showing
16 changed files
with
713 additions
and
314 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
daisy_workflows/build-publish/enterprise_linux/rhel_8_arm64.publish.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{{/* | ||
Template to publish UEFI-enabled Red Hat Enterprise Linux images. | ||
By default this template is setup to publish to the 'gce-image-builder' | ||
project, the 'environment' variable can be used to publish to 'test', 'prod' | ||
DeleteAfter is set to 180 days for all environments other than prod where no | ||
time period is set. | ||
*/}} | ||
{ | ||
"Name": "rhel-8-arm64", | ||
{{$work_project := printf "%q" "gce-image-builder" -}} | ||
{{$endpoint := `"https://www.googleapis.com/compute/alpha/projects/"` -}} | ||
{{$delete_after := `"24h*30*6"` -}} | ||
{{if eq .environment "test" -}} | ||
"WorkProject": {{$work_project}}, | ||
"PublishProject": "bct-prod-images", | ||
"ComputeEndpoint": {{$endpoint}}, | ||
"DeleteAfter": {{$delete_after}}, | ||
{{- else if eq .environment "prod" -}} | ||
"WorkProject": {{$work_project}}, | ||
"PublishProject": "rhel-cloud", | ||
"ComputeEndpoint": {{$endpoint}}, | ||
{{- else if eq .environment "autopush" -}} | ||
"WorkProject": {{$work_project}}, | ||
"PublishProject": "artifact-releaser-autopush", | ||
"ComputeEndpoint": {{$endpoint}}, | ||
"DeleteAfter": "3h", | ||
{{- else -}} | ||
"WorkProject": {{$work_project}}, | ||
"PublishProject": {{$work_project}}, | ||
"ComputeEndpoint": {{$endpoint}}, | ||
"DeleteAfter": {{$delete_after}}, | ||
{{- end}} | ||
{{$guest_features := `["UEFI_COMPATIBLE", "GVNIC"]` -}} | ||
{{$time := trimPrefix .publish_version "v"}} | ||
"Images": [ | ||
{ | ||
"Family": "rhel-8-arm64", | ||
"Prefix": "rhel-8-arm64", | ||
"Description": "Red Hat, Red Hat Enterprise Linux, 8, aarch64 built on {{$time}}", | ||
"Architecture": "ARM64", | ||
"Licenses": [ | ||
"projects/rhel-cloud/global/licenses/rhel-8-server" | ||
], | ||
"GuestOsFeatures": {{$guest_features}} | ||
} | ||
] | ||
} |
74 changes: 74 additions & 0 deletions
74
daisy_workflows/build-publish/enterprise_linux/rhel_8_arm64.wf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"Name": "rhel-8-arm64", | ||
"Project": "gce-image-builder", | ||
"Zone": "us-central1-b", | ||
"GCSPath": "gs://gce-image-build-bucket/daisy/${USERNAME}", | ||
"Vars": { | ||
"build_date": { | ||
"Value": "${TIMESTAMP}", | ||
"Description": "Build datestamp used to version the image." | ||
}, | ||
"google_cloud_repo": { | ||
"Value": "stable", | ||
"Description": "The Google Cloud Repo branch to use." | ||
}, | ||
"workflow_root": { | ||
"Value": "/workflows", | ||
"Description": "Root of github workflows, defaults to /workflows in the container." | ||
}, | ||
"gcs_url": { | ||
"Required": true, | ||
"Description": "The GCS path that image raw file exported to." | ||
}, | ||
"sbom_destination": { | ||
"Value": "${OUTSPATH}/export-image.sbom.json", | ||
"Description": "SBOM final export destination, copies in place by default" | ||
}, | ||
"installer_iso": { | ||
"Required": true, | ||
"Description": "The RHEL 8 installer ISO to build from." | ||
}, | ||
"sbom_util_gcs_root": { | ||
"Value": "", | ||
"Description": "The root gcs bucket for sbomutil, if using sbomutil to generate the SBOM." | ||
}, | ||
"sha256_txt": { | ||
"Value": "${OUTSPATH}/export-image-shasum.txt", | ||
"Description": "The file where the sha256 sum is stored." | ||
} | ||
}, | ||
"Steps": { | ||
"build": { | ||
"TimeOut": "60m", | ||
"IncludeWorkflow": { | ||
"Path": "${workflow_root}/image_build/enterprise_linux/rhel_8_arm64.wf.json", | ||
"Vars": { | ||
"build_date": "${build_date}", | ||
"installer_iso": "${installer_iso}" | ||
} | ||
} | ||
}, | ||
"export-image": { | ||
"Timeout": "60m", | ||
"IncludeWorkflow": { | ||
"Path": "${workflow_root}/export/disk_export_hyperdisk.wf.json", | ||
"Vars": { | ||
"destination": "${gcs_url}", | ||
"sbom_destination": "${sbom_destination}", | ||
"source_disk": "el-install-disk", | ||
"sbom_util_gcs_root": "${sbom_util_gcs_root}", | ||
"sha256_txt": "${sha256_txt}" | ||
} | ||
} | ||
}, | ||
"cleanup-image": { | ||
"DeleteResources": { | ||
"Images": ["rhel-8-arm64-v${build_date}"] | ||
} | ||
} | ||
}, | ||
"Dependencies": { | ||
"export-image": ["build"], | ||
"cleanup-image": ["build"] | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
daisy_workflows/build-publish/enterprise_linux/rhel_8_byos_arm64.publish.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{{/* | ||
Template to publish UEFI-enabled Red Hat Enterprise Linux images. | ||
By default this template is setup to publish to the 'gce-image-builder' | ||
project, the 'environment' variable can be used to publish to 'test', 'prod' | ||
DeleteAfter is set to 180 days for all environments other than prod where no | ||
time period is set. | ||
*/}} | ||
{ | ||
"Name": "rhel-8-byos-arm64", | ||
{{$work_project := printf "%q" "gce-image-builder" -}} | ||
{{$endpoint := `"https://www.googleapis.com/compute/alpha/projects/"` -}} | ||
{{$delete_after := `"24h*30*6"` -}} | ||
{{if eq .environment "test" -}} | ||
"WorkProject": {{$work_project}}, | ||
"PublishProject": "bct-prod-images", | ||
"ComputeEndpoint": {{$endpoint}}, | ||
"DeleteAfter": {{$delete_after}}, | ||
{{- else if eq .environment "prod" -}} | ||
"WorkProject": {{$work_project}}, | ||
"PublishProject": "rhel-byos-cloud", | ||
"ComputeEndpoint": {{$endpoint}}, | ||
{{- else if eq .environment "autopush" -}} | ||
"WorkProject": {{$work_project}}, | ||
"PublishProject": "artifact-releaser-autopush", | ||
"ComputeEndpoint": {{$endpoint}}, | ||
"DeleteAfter": "3h", | ||
{{- else -}} | ||
"WorkProject": {{$work_project}}, | ||
"PublishProject": {{$work_project}}, | ||
"ComputeEndpoint": {{$endpoint}}, | ||
"DeleteAfter": {{$delete_after}}, | ||
{{- end}} | ||
{{$guest_features := `["UEFI_COMPATIBLE", "GVNIC"]` -}} | ||
{{$time := trimPrefix .publish_version "v"}} | ||
"Images": [ | ||
{ | ||
"Family": "rhel-8-byos-arm64", | ||
"Prefix": "rhel-8-byos-arm64", | ||
"Description": "Red Hat, Red Hat Enterprise Linux, 8, BYOS aarch64 built on {{$time}}", | ||
"Architecture": "ARM64", | ||
"Licenses": [ | ||
"projects/rhel-cloud/global/licenses/rhel-8-byos" | ||
], | ||
"GuestOsFeatures": {{$guest_features}} | ||
} | ||
] | ||
} |
74 changes: 74 additions & 0 deletions
74
daisy_workflows/build-publish/enterprise_linux/rhel_8_byos_arm64.wf.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{ | ||
"Name": "rhel-8-byos-arm64", | ||
"Project": "gce-image-builder", | ||
"Zone": "us-central1-b", | ||
"GCSPath": "gs://gce-image-build-bucket/daisy/${USERNAME}", | ||
"Vars": { | ||
"build_date": { | ||
"Value": "${TIMESTAMP}", | ||
"Description": "Build datestamp used to version the image." | ||
}, | ||
"google_cloud_repo": { | ||
"Value": "stable", | ||
"Description": "The Google Cloud Repo branch to use." | ||
}, | ||
"workflow_root": { | ||
"Value": "/workflows", | ||
"Description": "Root of github workflows, defaults to /workflows in the container." | ||
}, | ||
"gcs_url": { | ||
"Required": true, | ||
"Description": "The GCS path that image raw file exported to." | ||
}, | ||
"sbom_destination": { | ||
"Value": "${OUTSPATH}/export-image.sbom.json", | ||
"Description": "SBOM final export destination, copies in place by default" | ||
}, | ||
"installer_iso": { | ||
"Required": true, | ||
"Description": "The RHEL 8 installer ISO to build from." | ||
}, | ||
"sbom_util_gcs_root": { | ||
"Value": "", | ||
"Description": "The root gcs bucket for sbomutil, if using sbomutil to generate the SBOM." | ||
}, | ||
"sha256_txt": { | ||
"Value": "${OUTSPATH}/export-image-shasum.txt", | ||
"Description": "The file where the sha256 sum is stored." | ||
} | ||
}, | ||
"Steps": { | ||
"build": { | ||
"TimeOut": "60m", | ||
"IncludeWorkflow": { | ||
"Path": "${workflow_root}/image_build/enterprise_linux/rhel_8_byos_arm64.wf.json", | ||
"Vars": { | ||
"build_date": "${build_date}", | ||
"installer_iso": "${installer_iso}" | ||
} | ||
} | ||
}, | ||
"export-image": { | ||
"Timeout": "60m", | ||
"IncludeWorkflow": { | ||
"Path": "${workflow_root}/export/disk_export_hyperdisk.wf.json", | ||
"Vars": { | ||
"destination": "${gcs_url}", | ||
"sbom_destination": "${sbom_destination}", | ||
"source_disk": "el-install-disk", | ||
"sbom_util_gcs_root": "${sbom_util_gcs_root}", | ||
"sha256_txt": "${sha256_txt}" | ||
} | ||
} | ||
}, | ||
"cleanup-image": { | ||
"DeleteResources": { | ||
"Images": ["rhel-8-byos-arm64-v${build_date}"] | ||
} | ||
} | ||
}, | ||
"Dependencies": { | ||
"export-image": ["build"], | ||
"cleanup-image": ["build"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.