Skip to content

Commit

Permalink
build-podman-os: Add extra-kargs
Browse files Browse the repository at this point in the history
 - Reflect changes from coreos/coreos-assembler#3770,
adding the extra-kargs configuration from image-base.yaml

Signed-off-by: Renata Ravanelli <[email protected]>
  • Loading branch information
ravanelli committed Apr 8, 2024
1 parent a2e854a commit 475285f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jobs/build-podman-os.Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,17 @@ def generate_disk_images(artifacts, shortcommit, arch, staging_repo, repo) {


def generate_diskvar_json(shortcommit, arch, artifacts, staging_repo, repo) {
extra-kargs = shwrapCapture("""
python3 -c 'import sys, yaml; data = yaml.safe_load(sys.stdin)["extra-kargs"][0]; \
print(data)' < src/config/image-base.yaml
""")
artifacts.each { artifact ->
def jsonContent = """
{
"osname": "fedora-coreos",
"container-repo": "${staging_repo}",
"container-tag": "${arch}-${shortcommit}",
"extra-kargs-string": "${extra-kargs}",
"image-type": "${artifact["platform"]}",
"container-imgref": "ostree-remote-registry:fedora:${repo}:5.1",
"metal-image-size": "3072",
Expand Down

0 comments on commit 475285f

Please sign in to comment.