summaryrefslogtreecommitdiff
path: root/scripts
AgeCommit message (Collapse)Author
2024-06-14T6484: Smoketest: Increase KVM memory limitMatthew Kobayashi
2024-06-05build: T6446: include support URL in the version dataDaniil Baturin
2024-05-23T6386: added caller workflows and codeowners (#634)Vijayakumar A
2024-05-15build-script: T3664: Allowed all options in both config file and command argszsdc
Moved defaults away from argparser to `defaults.py`. This unlocks the ability to pass values that can be defined as command line arguments via a config file. With this change logic looks like this (in order of overrides). Pre-build config: `data/defaults.toml` -> `build-flavors/<flavor>.toml` -> `--<command line argument>` Build config: `defaults.py` -> `data/defaults.toml` -> `build-types/<type>.toml` -> `architectures/<architecture>.toml` -> `build-flavors/<flavor>.toml` -> `--<command line argument>`
2024-05-14build-script: T3664: Add flavor and architecture to image name (rework)zsdc
The previous version did not work for all flavor types. This one should be universal.
2024-05-14build-script: T3664: Added flavor name to a target file namezsdc
Mark artifacts with a flavor name for better clarity.
2024-05-12build: T6330: fix indention of autogenerated release.pref.chrootChristian Breunig
2024-05-10Merge pull request #609 from dmbaturin/T3664-architectureChristian Breunig
build: T3664: include the architecture field in version data
2024-05-09build: T3664: include the architecture field in version dataDaniil Baturin
2024-05-09Merge pull request #605 from dmbaturin/T3664-flavor-fieldChristian Breunig
build: T3664: include build flavor name in the version file
2024-05-09build: T3664: use explicit defaults argument in the dict merging functionDaniil Baturin
to make it clear what is merged into what
2024-05-08build: T3664: include build flavor name in the version fileDaniil Baturin
2024-05-08build-script: T3664: Added more options to the image formatzsdc
Added two new options: - `image_ext`. Can be used if the file extension needs to be different than the image format - `image_opts`. Required if a target format needs extra options.
2024-05-08build: T3664: fix architecture mix-in loadingT3664-mixin-pathDaniil Baturin
2024-05-06build: T3664: modify the module-level template pathDaniil Baturin
instead of setting an environment variable
2024-05-03build: T3664: fix regression and bug in clone vyos-1x repoJohn Estabrook
2024-05-02build: T3664: clone vyos-1x under build dir instead of as submoduleJohn Estabrook
2024-04-29build: T3664: fail the build on external command errorsDaniil Baturin
2024-04-25build: T3664: typo fixes and small refactoringDaniil Baturin
2024-04-22build: T3664: adjust the vyos-1x submodule path in scriptsDaniil Baturin
2024-04-20Merge pull request #550 from dmbaturin/T3664-raw-flavorsChristian Breunig
build: T3664: add support for building non-ISO flavors
2024-04-16image-tools: T6154: installer prompts to confirm non-default passwordJohn Estabrook
2024-04-16T6238: Fix title check commit message should for f-stringViacheslav Hletenko
Fix ``` Commit title '{title}' does not match the required format! ```
2024-04-15build: T3664: initialize git vyos-1x submodule before importsJohn Estabrook
Signed-off-by: Daniil Baturin <daniil@vyos.io>
2024-04-14fix path to versions fileJohn Estabrook
Signed-off-by: Daniil Baturin <daniil@vyos.io>
2024-04-13build: T3664: add a sanity check for image_formatDaniil Baturin
and normalize it to a list if only one format is specified
2024-04-13build: T3664: filter out non-TOML files from the build flavor dirDaniil Baturin
to avoid mistakenly listing auixilliary files like README as flavors
2024-04-13Account for the working dir below the root in git invocationJohn Estabrook
Signed-off-by: Daniil Baturin <daniil@vyos.io>
2024-04-13T6173: fix TypeError: 'NoneType' object is not iterableChristian Breunig
Commit 611cfc85c531 ("T6173: validate allowed characters in ISO image name") missed the probability that version is a dict member bot empty.
2024-04-13T6238: Check poll request title action requires the python scriptViacheslav Hletenko
The `check-pr-title-and-commit-messages.py` that used for the action is not exists. Add this script.
2024-04-10build: T3664: add support for building non-ISO flavorsDaniil Baturin
2024-04-10Merge pull request #553 from c-po/T6173Daniil Baturin
T6173: validate allowed characters in ISO image name
2024-04-08T6173: validate allowed characters in ISO image nameChristian Breunig
Building custom VyOS version: 1.5-asdf%-202404081841 I: Checking if packages required for VyOS image build are installed Version contained illegal character(s), allowed: abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-+
2024-04-07image-tools: T6207: update test script for prompt for boot configJohn Estabrook
2024-04-05T5124: Python3 deprecation distutilskhramshinr
2024-03-23build scripts: T3664: move image build scripts to a dedicated directoryDaniil Baturin
to avoid a mix of image build scripts and ancilliary scripts in the same directory
2024-03-21build script: T3664: fix handling of missing or malformed flavor filesDaniil Baturin
2024-03-20chore: T671: remove unused scripts and references to themDaniil Baturin
2024-03-16Merge pull request #526 from sfinke0/fix-tagged-buildChristian Breunig
T6115: Fix tagged builds from detached Git HEAD
2024-03-14T6115: fix failing builds from detached HEAD (e.g. git tags)sfinke0
2024-03-13build: T1449: add default_config field support in flavor filesDaniil Baturin
to allow people to easily include a custom default config
2024-03-12docker, build: T6119: use python3-tomli instead of python3-tomlDaniil Baturin
for a compliant implementation ot TOML
2024-03-08Merge pull request #524 from sarthurdev/tpm_luksChristian Breunig
build: T4919: Fix error due to variable not found
2024-03-08build: T4919: Fix error due to variable not foundsarthurdev
2024-03-07Merge pull request #297 from sarthurdev/tpm_luksDaniil Baturin
config: T4919: Add emulated TPM encryption test
2024-03-01T6077: add bugtrcker, documentation and new URL to version fileChristian Breunig
Use single source for project related URLs that will later be consumed by the MOTD template used.
2024-03-01T3664: remove leading whitespaces from generated /usr/lib/os-releaseChristian Breunig
2024-03-01T3664: remove obsolete make-version-fileChristian Breunig
Commit 3979b25dcf ("T3664: initial implementation of the build flavor system") removed the call to make-version-file, thus we can also drop the file itself.
2024-02-25T6064: add build error if branch information from Git repository is missingChristian Breunig
This was discussed in slack, where a user was missing the Git commit ID in his custom build Reason is/was: git clone --single-branch -b 1.4.0-epa1 https://github.com/vyos/vyos-build Checks out the 1.4.0-epa1 tag as HEAD and does not clone any branch information. This results in: >>> import git >>> repo = git.Repo('.') >>> repo.head.object.hexsha[:14] 'bcac2eb1f9b49c' >>> git_branch = repo.active_branch.name Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/git/repo/base.py", line 881, in active_branch return self.head.reference ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/git/refs/symbolic.py", line 311, in _get_reference raise TypeError("%s is a detached symbolic reference as it points to %r" % (self, sha)) TypeError: HEAD is a detached symbolic reference as it points to 'bcac2eb1f9b49cc15ebda65838e5465543dbb9c6' during the build. The exception handler resets the branch and commit name to an empty string: https://github.com/vyos/vyos-build/blob/a3e60a00b400a1bad8609d5ce1abb0bb7abed7bc/scripts/build-vyos-image#L281-L296 This now adds a proper error message during build so it fails early. (07:46) vyos_bld 08278c5a1172:/vyos/vyos-build # isobuild -test Building custom VyOS version: 1.5-test-202402250746 I: Checking if packages required for VyOS image build are installed build/config Could not retrieve information from git: HEAD is a detached symbolic reference as it points to '39612f541e55bea19868f50f16d7a6c6e0034ed2'
2024-02-20config: T4919: Add emulated TPM encryption testsarthurdev