mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 02:47:56 +01:00
Add image_src variable for container image source override (#121)
This commit is contained in:
parent
e0e4de8f9a
commit
3d7e6b3725
6 changed files with 56 additions and 42 deletions
|
|
@ -1,5 +1,9 @@
|
|||
ifeq ($(IMAGE_SRC),)
|
||||
IMAGE_SRC := docker://$(IMAGE_REPO)/$(IMAGE_NAME):$(IMAGE_TAG)
|
||||
endif
|
||||
|
||||
$(IMAGE_NAME)-$(IMAGE_TAG):
|
||||
skopeo copy docker://$(IMAGE_REPO)/$(IMAGE_NAME):$(IMAGE_TAG) oci:$(IMAGE_NAME)-$(IMAGE_TAG)
|
||||
skopeo copy $(IMAGE_SRC) oci:$(IMAGE_NAME)-$(IMAGE_TAG)
|
||||
|
||||
install-deps:
|
||||
$(install_pkg) skopeo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue