]> git.ipfire.org Git - thirdparty/git.git/commit
github: simplify computation of the job's distro
authorPatrick Steinhardt <ps@pks.im>
Fri, 10 Jan 2025 11:32:01 +0000 (12:32 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Jan 2025 17:15:37 +0000 (09:15 -0800)
commitb133d3071ae6c648aced1c40e12914cb6b2ccec9
tree9e5d6bca158696587718b35033c12bbd462bcec5
parent9548e0478edaad0ec1e5dc4b7afc7af51dee43b0
github: simplify computation of the job's distro

We explicitly list the distro of Linux-based jobs, but it is equivalent
to the name of the image in almost all cases, except that colons are
replaced with dashes. Drop the redundant information and massage it in
our CI scripts, which is equivalent to how we do it in GitLab CI.

There are a couple of exceptions:

  - The "linux32" job, whose distro name is different than the image
    name. This is handled by adapting all sites to use the new name.

  - The "alpine" and "fedora" jobs, neither of which specify a tag for
    their image. This is handled by adding the "latest" tag.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.github/workflows/main.yml
ci/install-dependencies.sh
ci/lib.sh