Files
weave/reweave/Makefile
T
Raj Chaudhuri a3d5e0710e Removed ppc64le and s390x arch support
A crucial dependency does not support them any more
2024-05-05 10:52:45 +05:30

69 lines
1.6 KiB
Makefile

IMAGE_VERSION ?= 2.8.7-beta1
REGISTRY_USER ?= rajchaudhuri
ALPINE_BASEIMAGE ?= alpine:3.19.1
# Targets
.PHONY: build-images
build-images: submodule
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
PLATFORMS="$$(docker version -f '{{ .Server.Arch }}')" \
ALPINE_BASEIMAGE=$(ALPINE_BASEIMAGE) \
PUBLISH=false \
tools/build-images.sh
.PHONY: build-plugin
build-plugin: ../prog/net-plugin/launch.sh ../prog/net-plugin/config.json
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
PLATFORMS="$$(docker version -f '{{ .Server.Arch }}')" \
tools/build-plugin.sh
.PHONY: build
build: build-images build-plugin
.PHONY: publish-images
publish-images: submodule
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
PLATFORMS="linux/amd64,linux/arm,linux/arm64" \
ALPINE_BASEIMAGE=$(ALPINE_BASEIMAGE) \
PUBLISH=true \
tools/build-images.sh
.PHONY: publish-plugin
publish-plugin:
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
PLATFORMS="amd64,arm,arm64" \
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-plugin
clean-plugin:
REGISTRY_USER=${REGISTRY_USER} IMAGE_VERSION=${IMAGE_VERSION} \
tools/clean-plugin.sh
.PHONY: clean
clean: clean-images clean-plugin
.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