Make SHA256 checksum usage for Docker image dependencies more consistent
While updating the git lfs version I noticed a couple of things that hindered me, so we might want to improve on them for the future:
- 
GIT_LFS_*_CHECKSUMvalues refer to the binary inside the .tar.gz file we download from the project repo. It would be much easier to check the SHA256 of the .tar.gz we download from the GitHub repo, since those are described in the release page (under the SHA-256 hashes section). Currently we need to manually download the archive, unzip it and compute withsha256sum.
- 
GIT_LFS_256_CHECKSUMis another value that is used for theprepare ci imagejob. This one uses the approach I suggest in the point above though, so there is inconsistency. I’d propose one change here though: renameGIT_LFS_256_CHECKSUMtoGIT_LFS_AMD64_CHECKSUM, move the checksums to a helper job and just remove the variable definition from theprepare ci imagejob.
Edited  by Pedro Pombeiro