blob: cdfc9363281695a69860e4cb78beb77820bbe60b [file] [log] [blame]
giolekva11881b52021-11-27 16:51:58 +04001IMAGE_NAME := "giolekva/cert-manager-webhook-gandi"
2IMAGE_TAG := "v0.2.0"
3
4checkout:
5 git clone --depth 1 --branch v0.2.0 https://github.com/bwolf/cert-manager-webhook-gandi.git
6
7clean:
8 rm -f webhook
9
10build: export CGO_ENABLED=0
11build: export GO111MODULE=on
12build: clean
13 cd cert-manager-webhook-gandi && go build -o ../webhook -ldflags '-w -extldflags "-static"' .
14
15image: build
16 docker build --tag=$(IMAGE_NAME):$(IMAGE_TAG) . --platform=linux/arm64
17
18push: image
19 docker push $(IMAGE_NAME):$(IMAGE_TAG)
20
21
22push_arm64: export GOOS=linux
23push_arm64: export GOARCH=arm64
24push_arm64: push