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

change to image_repo

This commit is contained in:
Jason N. 2024-03-04 21:35:53 -05:00
parent 083cf7566b
commit dd1a33bcf0

View file

@ -1,7 +1,7 @@
<%page args="_image_repo_escaped, _image_repo_double_escaped, image_name, image_tag"/> <%page args="image_repo, _image_repo_double_escaped, image_name, image_tag"/>
if (which bootc &> /dev/null) if (which bootc &> /dev/null)
then then
bootc switch ${_image_repo_escaped}\/${image_name}:${image_tag} bootc switch ${image_repo}/${image_name}:${image_tag}
else 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 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 fi