mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Define the DEBs listing outside of the template
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
30941aeadc
commit
336da2a297
2 changed files with 11 additions and 12 deletions
|
@ -3,18 +3,7 @@
|
|||
fail-fast: false
|
||||
matrix:
|
||||
include:
|
||||
<%- for distro, version, arch in (
|
||||
("debian", "10", "x86_64"),
|
||||
("debian", "10", "arm64"),
|
||||
("debian", "11", "x86_64"),
|
||||
("debian", "11", "arm64"),
|
||||
("debian", "12", "x86_64"),
|
||||
("debian", "12", "arm64"),
|
||||
("ubuntu", "20.04", "x86_64"),
|
||||
("ubuntu", "20.04", "arm64"),
|
||||
("ubuntu", "22.04", "x86_64"),
|
||||
("ubuntu", "22.04", "arm64"),
|
||||
) %>
|
||||
<%- for distro, version, arch in build_debs_listing %>
|
||||
- pkg-type: deb
|
||||
distro: <{ distro }>
|
||||
version: "<{ version }>"
|
||||
|
|
|
@ -263,6 +263,15 @@ def generate_workflows(ctx: Context):
|
|||
for arch in ("x86_64", "arm64", "aarch64"):
|
||||
build_rpms_listing.append((distro, release, arch))
|
||||
|
||||
build_debs_listing = []
|
||||
for distro, releases in (
|
||||
("debian", ("10", "11", "12")),
|
||||
("ubuntu", ("20.04", "22.04")),
|
||||
):
|
||||
for release in releases:
|
||||
for arch in ("x86_64", "arm64"):
|
||||
build_debs_listing.append((distro, release, arch))
|
||||
|
||||
env = Environment(
|
||||
block_start_string="<%",
|
||||
block_end_string="%>",
|
||||
|
@ -305,6 +314,7 @@ def generate_workflows(ctx: Context):
|
|||
test_salt_pkg_downloads_needs_slugs
|
||||
),
|
||||
"build_rpms_listing": build_rpms_listing,
|
||||
"build_debs_listing": build_debs_listing,
|
||||
}
|
||||
shared_context_file = (
|
||||
tools.utils.REPO_ROOT / "cicd" / "shared-gh-workflows-context.yml"
|
||||
|
|
Loading…
Add table
Reference in a new issue