The version of libssl available in the Alpine package feeds changed with version 3.15. The latest libssl package is 1.1 in 3.14.x and earlier, but newer versions only have libssl3.
Add a check for the Alpine version in the install from source script and switch between installing libssl3 and libssl1.1 depending on the distro version.
Also add another entry to the test matrix of distributions to include a 3.14.x Alpine version.
This replaces the two other PRs that aimed to address this issue:
Tested the updated workflow here: https://github.com/git-ecosystem/git-credential-manager/actions/runs/8698286553/job/23855027830
Originally posted by @mjcheetham in git-ecosystem/git-credential-manager#1582