aptly: Add new repository configuration format
The new configuration format splits aptly repositories and OBS projects into two separate hashmaps, while still allowing to override settings on per-project level:
my $apertis_aptly_server = {
"url" => "https://...",
"token" => "...",
};
our $aptly_targets = {
"apertis" => {
"server" => $apertis_aptly_server
"gpg-key" => $aptly_gpgkey,
"prefix" => "apertis",
}
};
our $aptly_projects = {
"apertis:v2025:target" => {
"default" => {
"target" => "apertis",
"distribution" => "v2025",
"component" => "target",
}
},
"apertis:v2025:development" => {
"default" => {
"target" => "apertis",
"distribution" => "v2025",
"component" => "development",
}
},
"apertis:v2025:sdk" => {
"default" => {
"target" => "apertis",
"distribution" => "v2025",
"gpg-key" => "...",
"component" => "sdk",
},
"rebuild" => {
"distribution" => "v2025",
"component" => "sdk",
"gpg-key" => "...",
"prefix" => "apertis",
"aptly-server" => {
"url" => "https://rebuilds.apertis.org",
"token" => "tokentoken",
},
},
},
"apertis:v2025:foo" => {
"default" => {
"distribution" => "v2025",
"component" => "sdk",
"prefix" => "foo",
"gpg-key" => "...",
"aptly-server" => {
"url" => "https://aptly.example.org/debian",
"token" => "toktok",
},
}
},
};
The old-style configuration is still accepted for the time being, subject to be removed in future.
Edited by Andrej Shadura
Merge request reports
Activity
requested review from @refi64
removed review request for @refi64
requested review from @em
removed review request for @em
added 1 commit
- a98e282d - aptly: Print a warning if old configuration is used
added 1 commit
- c21988f4 - aptly: Check the required bits of repo config are in place
- Resolved by Andrej Shadura
- Resolved by Andrej Shadura
- Resolved by Andrej Shadura
- Resolved by Andrej Shadura
added 1 commit
- fa1f6e0a - fixup! aptly: Abort on undefined repo usage, drop option aliases
marked this merge request as draft from fa1f6e0a
added 1 commit
- 0be8d864 - aptly: Use Perl function signatures for better readability
added 5 commits
- 316b866d - aptly: Rename prefix/distro-based functions into _old
- 4b7aba72 - aptly: Port aptly_publish_drop_check/update over to the new calling format
- 879756bc - aptly: Port aptly_publish_repo/snapshot to the new calling format
- bec7f6df - fixup! aptly: Port aptly_publish_drop_check/update over to the new calling format
- d4fe846b - aptly: Port aptly_distro_snapshot to the new calling format
Toggle commit listadded 7 commits
- 06a31551 - aptly: Abort on undefined repo usage, drop option aliases
- 5602dc0f - aptly: Use Perl function signatures for better readability
- a7c4dcf4 - aptly: Rename prefix/distro-based functions into _old
- 7293722a - aptly: Port aptly_publish_drop_check/update over to the new calling format
- bcaf9a24 - aptly: Port aptly_publish_repo/snapshot to the new calling format
- e26737fe - aptly: Port aptly_distro_snapshot to the new calling format
- fb0cf2de - aptly: Port the publisher hook
Toggle commit list
Please register or sign in to reply