Skip to content

Commit c5b5d18

Browse files
committed
Create a Makefile
Just to avoid typing repetitive commands
1 parent a2fd738 commit c5b5d18

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Makefile

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.PHONY: build push help
2+
.DEFAULT_GOAL := help
3+
4+
IMAGE_NAME := quay.io/3scale/zync
5+
TAG := latest
6+
IMAGE_TAG := $(IMAGE_NAME):$(TAG)
7+
8+
build:
9+
docker build . --tag $(IMAGE_TAG)
10+
11+
push:
12+
docker push $(IMAGE_TAG)
13+
14+
help: ## Print this help
15+
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)

0 commit comments

Comments
 (0)