1# Makefile to build and push the `cilium/ebpf` llvm builder Docker image. 2CONTAINER_ENGINE ?= docker 3 4IMAGE := $(shell cat IMAGE) 5EPOCH := $(shell date +'%s') 6 7ifndef IMAGE 8$(error IMAGE file not present in Makefile directory) 9endif 10 11.PHONY: build push 12 13build: 14 ${CONTAINER_ENGINE} build --no-cache . -t "$(IMAGE):$(EPOCH)" 15 echo $(EPOCH) > VERSION 16 17push: 18 ${CONTAINER_ENGINE} push "$(IMAGE):$(shell cat VERSION)"