-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
51 lines (38 loc) · 845 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
service := ntc-services
port := 3444
version := 0.0.64
docker-org := pineappleworkshop
docker-registry := gcr.io
docker-image := pineappleworkshop/${service}:${version}
root := $(abspath $(shell pwd))
bootstrap:
go mod init $(service)
make init
init:
go mod tidy
build:
go build main.go
dev:
go run main.go
test:
go test -v ./...
docker-build:
docker build -t $(docker-image) .
docker-push:
docker push $(docker-image)
docker-run:
@docker run -itp $(port):$(port) $(docker-image)
# this directive is not working
docker-supabase-up:
set -o allexport
source docker/.env.example
docker-compose -f docker/docker-compose.yml up
purge:
go clean
rm -rf $(root)/vendor
bumpversion-patch:
bumpversion patch --allow-dirty
bumpversion-minor:
bumpversion minor --allow-dirty
bumpversion-major:
bumpversion major --allow-dirty