mirror of
https://github.com/JasonN3/build-container-installer.git
synced 2025-12-25 19:07:54 +01:00
use one line condition
This commit is contained in:
parent
ec03e33530
commit
e9bcb97efb
1 changed files with 1 additions and 5 deletions
|
|
@ -1,9 +1,5 @@
|
|||
ifeq ($(IMAGE_SRC),)
|
||||
IMAGE_SRC += docker://$(IMAGE_REPO)/$(IMAGE_NAME):$(IMAGE_TAG)
|
||||
endif
|
||||
|
||||
$(IMAGE_NAME)-$(IMAGE_TAG):
|
||||
skopeo copy $(IMAGE_SRC) oci:$(IMAGE_NAME)-$(IMAGE_TAG)
|
||||
skopeo copy $(if $(IMAGE_SRC),$(IMAGE_SRC),docker://$(IMAGE_REPO)/$(IMAGE_NAME):$(IMAGE_TAG)) oci:$(IMAGE_NAME)-$(IMAGE_TAG)
|
||||
|
||||
install-deps:
|
||||
$(install_pkg) skopeo
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue