document and simplify some releasing

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher
2021-04-29 10:05:19 +03:00
parent 33a4330cf6
commit 4e7abb5250
4 changed files with 261 additions and 213 deletions

View File

@@ -3,19 +3,25 @@ DIRS = $(dir $(shell find . -maxdepth 2 -mindepth 2 -type f -name build.yml))
OPTIONS ?=
PUSHOPTIONS =
ifneq ($(LK_RELEASE),)
PUSHOPTIONS += -release $(LK_RELEASE)
endif
push:
@set -e; for d in $(DIRS); do linuxkit pkg push $(OPTIONS) "$$d"; done
@linuxkit pkg push $(OPTIONS) $(PUSHOPTIONS) $(DIRS)
forcepush:
@set -e; for d in $(DIRS); do linuxkit pkg push $(OPTIONS) --force "$$d"; done
@linuxkit pkg push $(OPTIONS) $(PUSHOPTIONS) --force $(DIRS)
build:
@set -e; for d in $(DIRS); do linuxkit pkg build $(OPTIONS) "$$d"; done
@linuxkit pkg build $(OPTIONS) $(DIRS)
forcebuild:
@set -e; for d in $(DIRS); do linuxkit pkg build $(OPTIONS) --force "$$d"; done
@linuxkit pkg build $(OPTIONS) --force $(DIRS)
show-tag:
@set -e; for d in $(DIRS); do linuxkit pkg show-tag $(OPTIONS) "$$d"; done
@linuxkit pkg show-tag $(OPTIONS) $(DIRS)
clean: