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

Allow caching of dnf (#46)

This commit is contained in:
Jason N 2024-03-11 16:29:45 -04:00 committed by GitHub
parent bfa150ceeb
commit c3dfff5c5b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 166 additions and 32 deletions

View file

@ -0,0 +1,7 @@
<%page args="image_repo, _image_repo_double_escaped, image_name, image_tag"/>
if (which bootc &> /dev/null)
then
bootc switch --mutate-in-place --enforce-container-sigpolicy --transport registry ${image_repo}/${image_name}:${image_tag}
else
sed -i 's/container-image-reference=.*/container-image-reference=ostree-image-signed:docker:\/\/${_image_repo_double_escaped}\/${image_name}:${image_tag}/' /ostree/deploy/default/deploy/*.origin
fi