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

Use bootc when available (#33)

This commit is contained in:
Jason N 2024-03-05 09:32:38 -05:00 committed by GitHub
parent c4a0406395
commit 38f41f7acc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 60 additions and 17 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 ${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