File: Makefile

package info (click to toggle)
golang-github-cilium-ebpf 0.17.3%2Bds1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,688 kB
  • sloc: ansic: 1,259; makefile: 127; python: 113; awk: 29; sh: 24
file content (18 lines) | stat: -rw-r--r-- 414 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Makefile to build and push the `cilium/ebpf` llvm builder Docker image.
CONTAINER_ENGINE ?= docker

IMAGE := $(shell cat IMAGE)
EPOCH := $(shell date +'%s')

ifndef IMAGE
$(error IMAGE file not present in Makefile directory)
endif

.PHONY: build push

build:
	${CONTAINER_ENGINE} build --no-cache . -t "$(IMAGE):$(EPOCH)"
	echo $(EPOCH) > VERSION

push:
	${CONTAINER_ENGINE} push "$(IMAGE):$(shell cat VERSION)"