forked from streamnative/pulsar-beat-output
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
20 lines (15 loc) · 761 Bytes
/
Makefile
File metadata and controls
20 lines (15 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
IMAGE ?= streamnative/pulsar-beat-output
GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
GIT_HASH := $(shell git rev-parse HEAD)
.PHONY: build-image
build-image: ## Build docker image. Default: IMAGE=streamnative/pulsar-beat-output
docker build -t $(IMAGE):$(GIT_HASH) .
.PHONY: push
push: build-image ## Build and push docker image. Default: IMAGE=streamnative/pulsar-beat-output
docker push $(IMAGE):$(GIT_HASH)
.PHONY: build-m1-image
build-m1-image: ## Build docker image. Default: IMAGE=streamnative/pulsar-beat-output
docker buildx build --platform linux/amd64 -t $(IMAGE):$(GIT_HASH) .
.PHONY: push-m1
push-m1: build-m1-image ## Build and push docker image. Default: IMAGE=streamnative/pulsar-beat-output
docker push $(IMAGE):$(GIT_HASH)