github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/testdata/docker/Makefile (about)

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