Build steps for docker plugin added
This commit is contained in:
1 parent
668bbcf4ed
commit
c085ebed05
8 files changed
+150
-76
No files matched your search
+36
-14
@@ -1,42 +1,64 @@
|
||||
IMAGE_VERSION ?= 2.8.2-beta8
|
||||
IMAGE_VERSION ?= 2.8.2-beta9
|
||||
REGISTRY_USER ?= weaveworks
|
||||
|
||||
ALPINE_BASEIMAGE ?= alpine:3.18.2
|
||||
|
||||
# Targets
|
||||
.PHONY: build
|
||||
build: submodule
|
||||
.PHONY: build-images
|
||||
build-images: submodule
|
||||
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
|
||||
PLATFORMS="$$(docker version -f '{{ .Server.Arch }}')" \
|
||||
ALPINE_BASEIMAGE=$(ALPINE_BASEIMAGE) \
|
||||
POSTBUILD=--load \
|
||||
tools/build-images.sh
|
||||
|
||||
.PHONY: scan
|
||||
scan:
|
||||
.PHONY: build-plugin
|
||||
build-plugin: ../prog/net-plugin/launch.sh ../prog/net-plugin/config.json
|
||||
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
|
||||
tools/scan-images.sh
|
||||
tools/build-plugin.sh
|
||||
|
||||
.PHONY: publish
|
||||
publish: submodule
|
||||
.PHONY: build
|
||||
build: build-images build-plugin
|
||||
|
||||
.PHONY: publish-images
|
||||
publish-images: submodule
|
||||
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
|
||||
ALPINE_BASEIMAGE=$(ALPINE_BASEIMAGE) \
|
||||
POSTBUILD=--push tools/build-images.sh
|
||||
PUBLISH=true \
|
||||
tools/build-images.sh
|
||||
|
||||
.PHONY: publish-plugin
|
||||
publish-plugin:
|
||||
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
|
||||
PUBLISH=true \
|
||||
tools/build-plugin.sh
|
||||
|
||||
.PHONY: publish
|
||||
publish: publish-images publish-plugin
|
||||
|
||||
.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-plugin
|
||||
clean-plugin:
|
||||
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
|
||||
tools/clean-plugin.sh
|
||||
|
||||
.PHONY: clean
|
||||
clean: clean-scan clean-images
|
||||
clean: clean-plugin clean-images
|
||||
|
||||
.PHONY: submodule
|
||||
submodule: ../tools/.git
|
||||
|
||||
../tools/.git:
|
||||
git submodule update --init
|
||||
|
||||
.PHONY: scan
|
||||
scan:
|
||||
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
|
||||
tools/scan-images.sh
|
||||
|
||||
.PHONY: clean-scan
|
||||
clean-scan:
|
||||
tools/clean-scans.sh
|
||||
Reference in new issue
Block a user