mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-25 22:50:03 +00:00
Merge pull request #2571 from ijc/linuxkit-pkg
Implement package build, push and show-tag in linuxkit tool
This commit is contained in:
@@ -1,11 +1,22 @@
|
||||
ORG?=linuxkitprojects
|
||||
IMAGE=kubernetes-image-cache-$(CACHE)
|
||||
NOTRUST=1
|
||||
SOURCE=$(BUILDDIR)
|
||||
DEPS=$(BUILDDIR)/Dockerfile
|
||||
ARCHES=x86_64
|
||||
$(BUILDDIR)/build.yml: build.yml.in
|
||||
@sed -e 's/@@CACHE@@/$(CACHE)/g' < $< > $@
|
||||
|
||||
$(BUILDDIR)/Dockerfile: Dockerfile
|
||||
cp $< $@
|
||||
@cp $< $@
|
||||
|
||||
include ../../../pkg/package.mk
|
||||
.PHONY: push forcepush tag forcetag show-tag
|
||||
|
||||
push: $(BUILDDIR)/build.yml $(BUILDDIR)/Dockerfile
|
||||
linuxkit pkg push -hash-path . $(BUILDDIR)
|
||||
|
||||
forcepush: $(BUILDDIR)/build.yml $(BUILDDIR)/Dockerfile
|
||||
linuxkit pkg push -force -hash-path . $(BUILDDIR)
|
||||
|
||||
tag: $(BUILDDIR)/build.yml $(BUILDDIR)/Dockerfile
|
||||
linuxkit pkg build -hash-path . $(BUILDDIR)
|
||||
|
||||
forcetag: $(BUILDDIR)/build.yml $(BUILDDIR)/Dockerfile
|
||||
linuxkit pkg build --force -hash-path . $(BUILDDIR)
|
||||
|
||||
show-tag: $(BUILDDIR)/build.yml $(BUILDDIR)/Dockerfile
|
||||
@linuxkit pkg show-tag -hash-path . $(BUILDDIR)
|
||||
|
5
projects/kubernetes/image-cache/build.yml.in
Normal file
5
projects/kubernetes/image-cache/build.yml.in
Normal file
@@ -0,0 +1,5 @@
|
||||
org: linuxkitprojects
|
||||
image: kubernetes-image-cache-@@CACHE@@
|
||||
disable-content-trust: true
|
||||
arches:
|
||||
- amd64
|
Reference in New Issue
Block a user