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

build: T6653: add build/manifest.json file (backport #736) #746

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

mergify[bot]
Copy link

@mergify mergify bot commented Aug 26, 2024

Change Summary

For a release workflow, we need to know the build artifact name.

We can save that data to build/manifest.json with a list of artifacts.

{
  "build_config": {
    "custom_apt_entry": [
      "deb [arch=amd64] https://repo.saltproject.io/py3/debian/11/amd64/3005 bullseye main"
    ],
    "custom_apt_key": [],
    "reuse_iso": null,
    "disk_size": 10,
    "build_by": "christian@breunig.cc",
    "build_comment": "",
    "build_type": "release",
    "architecture": "amd64",
    "debian_distribution": "bookworm",
    "debian_mirror": "http://deb.debian.org/debian",
    "debian_security_mirror": "http://deb.debian.org/debian-security",
    "debian_archive_areas": "main contrib non-free non-free-firmware",
    "vyos_mirror": "https://rolling-packages.vyos.net/current",
    "vyos_branch": "current",
    "release_train": "current",
    "kernel_version": "6.6.45",
    "bootloaders": "syslinux,grub-efi",
    "squashfs_compression_type": "xz -Xbcj x86 -b 256k -always-use-fragments -no-recovery",
    "website_url": "https://vyos.io",
    "support_url": "https://support.vyos.io",
    "bugtracker_url": "https://vyos.dev",
    "documentation_url": "https://docs.vyos.io/en/latest",
    "project_news_url": "https://blog.vyos.io",
    "additional_repositories": [
      "deb [arch=amd64] https://repo.saltproject.io/py3/debian/11/amd64/3005 bullseye main"
    ],
    "kernel_flavor": "amd64-vyos",
    "packages": [
      "qemu-guest-agent",
      "vyos-xe-guest-utilities",
      "grub2",
      "grub-pc",
      "vyos-linux-firmware",
      "vyos-intel-qat",
      "vyos-intel-ixgbe",
      "vyos-intel-ixgbevf",
      "mlnx-ofed-kernel-modules",
      "mlnx-tools",
      "openvpn-dco",
      "telegraf",
      "strace vim tmux git mc vyos-1x-smoketest",
      "hyperv-daemons",
      "vyos-1x-vmware"
    ],
    "image_format": [
      "iso"
    ],
    "architectures": {
      "amd64": {
        "packages": [
          "hyperv-daemons",
          "vyos-1x-vmware"
        ]
      }
    },
    "pbuilder_debian_mirror": "http://deb.debian.org/debian",
    "version": "1.5-foo-202408191937",
    "debug": false,
    "dry_run": false,
    "build_flavor": "generic",
    "build_dir": "build",
    "pbuilder_config": "build/pbuilderrc",
    "boot_settings": {
      "timeout": "5",
      "console_type": "tty",
      "console_num": "0",
      "console_speed": "115200",
      "bootmode": "normal"
    }
  },
  "artifacts": [
    "vyos-1.5-foo-202408191937-generic-amd64.iso"
  ],
  "pre_build_config": {
    "build_type": "release",
    "architecture": "amd64",
    "debian_distribution": "bookworm",
    "debian_mirror": "http://deb.debian.org/debian",
    "debian_security_mirror": "http://deb.debian.org/debian-security",
    "debian_archive_areas": "main contrib non-free non-free-firmware",
    "vyos_mirror": "https://rolling-packages.vyos.net/current",
    "vyos_branch": "current",
    "release_train": "current",
    "kernel_version": "6.6.45",
    "bootloaders": "syslinux,grub-efi",
    "squashfs_compression_type": "xz -Xbcj x86 -b 256k -always-use-fragments -no-recovery",
    "website_url": "https://vyos.io",
    "support_url": "https://support.vyos.io",
    "bugtracker_url": "https://vyos.dev",
    "documentation_url": "https://docs.vyos.io/en/latest",
    "project_news_url": "https://blog.vyos.io",
    "image_format": "iso",
    "packages": [
      "qemu-guest-agent",
      "vyos-xe-guest-utilities"
    ],
    "architectures": {
      "amd64": {
        "packages": [
          "hyperv-daemons",
          "vyos-1x-vmware"
        ]
      }
    },
    "build_by": "christian@breunig.cc",
    "pbuilder_debian_mirror": "http://deb.debian.org/debian",
    "version": "1.5-foo-202408191937",
    "build_comment": null,
    "debug": false,
    "dry_run": false,
    "custom_apt_entry": null,
    "custom_apt_key": null,
    "custom_package": [
      "strace vim tmux git mc vyos-1x-smoketest"
    ],
    "reuse_iso": null,
    "disk_size": null,
    "build_flavor": "generic"
  }
}

And get the resulting image (ISO) name using:

helix:~/vyos-build/build [artifacts-T6653] # jq -r .artifacts[0] manifest.json
vyos-1.5-foo-202408191937-generic-amd64.iso

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Component(s) name

build scripts

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

This is an automatic backport of pull request #736 done by [Mergify](https://mergify.com).

@mergify mergify bot requested a review from a team as a code owner August 26, 2024 18:54
@mergify mergify bot requested review from dmbaturin, sarthurdev, zdc, jestabro, sever-sever and c-po and removed request for a team August 26, 2024 18:54
@mergify mergify bot mentioned this pull request Aug 26, 2024
11 tasks
@github-actions github-actions bot added the sagitta VyOS 1.4 LTS label Aug 26, 2024
Copy link

👍
No issues in PR Title / Commit Title

@c-po c-po enabled auto-merge August 26, 2024 18:54
@c-po c-po merged commit 8bf5233 into sagitta Aug 27, 2024
6 checks passed
@mergify mergify bot deleted the mergify/bp/sagitta/pr-736 branch August 27, 2024 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sagitta VyOS 1.4 LTS
Development

Successfully merging this pull request may close these issues.

3 participants