1
0
Fork 0
mirror of https://github.com/JasonN3/build-container-installer.git synced 2025-12-25 10:57:55 +01:00

Only run some actions on 38 or older (#69)

This commit is contained in:
Jason N 2024-03-13 14:28:34 -04:00 committed by GitHub
parent 6f1f78fa89
commit bbac3469b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 64 additions and 77 deletions

View file

@ -1,5 +1,5 @@
<%page args="image_repo, _image_repo_double_escaped, image_name, image_tag"/>
if (which bootc &> /dev/null)
<%page args="image_repo, _image_repo_double_escaped, image_name, image_tag, _rhel, version"/>
if (which bootc &> /dev/null) && [ ${_rhel} == 'false' && ${version} -ge 39 ]
then
bootc switch --mutate-in-place --enforce-container-sigpolicy --transport registry ${image_repo}/${image_name}:${image_tag}
else