Skip to content

Commit da2815f

Browse files
authored
Allow installing on azurelinux (#2269)
[`install-from-source.sh`](https://github.com/git-ecosystem/git-credential-manager/blob/v2.7.2/src/linux/Packaging.Linux/install-from-source.sh#L234) already allows you to install on `mariner`. But `mariner` is now `azurelinux`, so we ought to allow both. The installer works fine without any other modifications. And I have had no issues using gcm on azurelinux3 so far. I also add azurelinux3 to the test matrix.
2 parents cb4afc0 + ae79074 commit da2815f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/validate-install-from-source.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ jobs:
2929
- image: registry.suse.com/suse/sle15:15.4.27.11.31
3030
- image: archlinux
3131
- image: mcr.microsoft.com/cbl-mariner/base/core:2.0
32+
- image: mcr.microsoft.com/azurelinux/base/core:3.0
3233
container: ${{matrix.vector.image}}
3334
steps:
3435
- run: |
3536
if [[ ${{matrix.vector.image}} == *"suse"* ]]; then
3637
zypper -n install tar gzip
3738
elif [[ ${{matrix.vector.image}} == *"centos"* ]]; then
3839
dnf install which -y
39-
elif [[ ${{matrix.vector.image}} == *"mariner"* ]]; then
40+
elif [[ ${{matrix.vector.image}} == *"mariner"* || ${{matrix.vector.image}} == *"azurelinux"* ]]; then
4041
GNUPGHOME=/root/.gnupg tdnf update -y &&
4142
GNUPGHOME=/root/.gnupg tdnf install tar -y # needed for `actions/checkout`
4243
fi

src/linux/Packaging.Linux/install-from-source.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ case "$distribution" in
231231

232232
ensure_dotnet_installed
233233
;;
234-
mariner)
234+
mariner | azurelinux*)
235235
print_unsupported_distro "WARNING" "$distribution"
236236
$sudo_cmd tdnf update -y
237237

0 commit comments

Comments
 (0)