Skip to content
Snippets Groups Projects

aptly: Add new repository configuration format

Merged Andrej Shadura requested to merge new-aptly-config into collabora/staging

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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Andrej Shadura added 2 commits

    added 2 commits

    • bd6e7d5f - aptly: Rename project to projid and repo to repoid in OBS repo contexts
    • 16c42a24 - aptly: Abort on undefined repo usage, drop option aliases

    Compare with previous version

  • Andrej Shadura added 1 commit

    added 1 commit

    • fa1f6e0a - fixup! aptly: Abort on undefined repo usage, drop option aliases

    Compare with previous version

  • Andrej Shadura marked this merge request as draft from fa1f6e0a

    marked this merge request as draft from fa1f6e0a

  • Andrej Shadura added 1 commit

    added 1 commit

    • 0be8d864 - aptly: Use Perl function signatures for better readability

    Compare with previous version

  • Andrej Shadura added 5 commits

    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

    Compare with previous version

  • Andrej Shadura added 7 commits

    added 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

    Compare with previous version

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading