-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
33 lines (24 loc) · 879 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
repo ?= ghcr.io/jd-opensource
version:=1.2.0-$(shell git rev-parse --short HEAD)
ifeq (,$(shell go env GOBIN))
GOBIN=$(shell go env GOPATH)/bin
else
GOBIN=$(shell go env GOBIN)
endif
all: gen-client build image push build-charts-crs
all-image: build image push
gen-client:
hack/update-codegen.sh
build:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o bin/joylive-injector main.go
image:
DOCKER_SCAN_SUGGEST=false
docker build --platform linux/amd64 -t $(repo)/joylive-injector:$(version)-AMD64 -f LocalBuild.dockerfile .
build-image:
DOCKER_SCAN_SUGGEST=false
docker build -t $(repo)/joylive-injector:$(version)-AMD64 .
push:
docker push $(repo)/joylive-injector:$(version)-AMD64
build-charts-crs:
helm template joylive-injector deploy/joylive-injector --include-crds > deploy/all-cr.yaml
helm package deploy/joylive-injector --destination deploy/packages