-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (29 loc) · 1.05 KB
/
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
GO111MODULES=on
APP=pg-aurora-client
COMMIT_SHA=$(shell git rev-parse --short HEAD)
APP_VERSION=19pgx
default: help
.PHONY: build
## build:
build:
CGO_ENABLED=0 go build -o ${APP} cmd/main.go cmd/config.go cmd/helpers.go cmd/routes.go
.PHONY: docker-push
## docker-push: build and push image to docker hub
docker-push:
docker build . -t kongcloud/pg-aurora-client:latest -t kongcloud/pg-aurora-client:${APP_VERSION} -t kongcloud/pg-aurora-client:${COMMIT_SHA}
docker push kongcloud/pg-aurora-client:latest
docker push kongcloud/pg-aurora-client:${APP_VERSION}
docker push kongcloud/pg-aurora-client:${COMMIT_SHA}
.PHONY: helm-template-dev
## helm-template-dev: generate helm template
helm-template-dev:
helm template release-${APP_VERSION} ./deploy/chart -f ./deploy/chart/values-aws-dev-us-east-2.yaml > ./scratch/deploy-aws-tls-${APP_VERSION}.yaml
.PHONY: clean
## clean: removes the binary files
clean:
rm -f ${APP}
.PHONY: help
## help: Prints this help message
help:
@echo "Usage: \n"
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'