New build process created

This commit is contained in:
Raj Chaudhuri committed 2023-03-27 23:40:04 +05:30
1 parent 273c611d43
commit 90a5d945c2
14 files changed
+614 -197

No files matched your search

+25 -2
View File
@@ -1,15 +1,38 @@
IMAGE_VERSION ?= 2.8.1
IMAGE_VERSION ?= 2.8.2-beta0
REGISTRY_USER ?= weaveworks
# Targets
.PHONY: build
build: submodule
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
PLATFORMS="$$(docker version -f '{{ .Server.Arch }}')" \
POSTBUILD=--load \
tools/build-images.sh
.PHONY: scan
scan:
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
tools/scan-images.sh
.PHONY: publish
publish: submodule
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
POSTBUILD=--push tools/build-images.sh
.PHONY: clean-images
clean-images:
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
tools/clean-images.sh
.PHONY: clean-scan
clean-scan:
tools/clean-scans.sh
.PHONY: clean
clean: clean-scan
clean: clean-scan clean-images
.PHONY: submodule
submodule: ../tools/.git
../tools/.git:
git submodule update --init