-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (30 loc) · 852 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
34
35
VERSION := $(shell git describe --tags --always --dirty="-dev" --match "v*.*.*" || echo "development" )
VERSION := $(VERSION:v%=%)
.PHONY: build
build:
@CGO_ENABLED=0 go build \
-ldflags "-X main.version=${VERSION}" \
-o ./bin/kube-sidecar-injector \
github.com/flashbots/kube-sidecar-injector/cmd
.PHONY: docker
docker:
docker build -t kube-sidecar-injector:${VERSION} .
.PHONY: snapshot
snapshot:
@goreleaser release --snapshot --clean
.PHONY: image
image:
@docker build \
--build-arg VERSION=${VERSION} \
--tag kube-sidecar-injector:${VERSION} \
.
.PHONY: deploy
deploy: image
@kubectl \
--context orbstack \
apply \
--filename test/cluster-role.yaml \
--filename test/configmap.yaml \
--filename test/dummy.yaml \
--filename test/deployment-fargate.yaml \
--filename test/deployment-node-exporter.yaml