-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (30 loc) · 1.4 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
36
37
38
39
40
.PHONY: help build server galaxy test coverage docker-build
default: help
VERSION ?= latest
REGISTRY = registry.ooga-booga.dev
help:
@echo "--------------------------------------------------------------------"
@echo "| Command | Description |"
@echo "--------------------------------------------------------------------"
@echo "| docker-build | builds the project docker release image |"
@echo "--------------------------------------------------------------------"
@echo "| build | builds the project and outputs to ./release |"
@echo "--------------------------------------------------------------------"
@echo "| galaxy | Runs the galaxy generator code |"
@echo "--------------------------------------------------------------------"
@echo "| api | runs the project web server |"
@echo "--------------------------------------------------------------------"
docker-login:
docker login registry.ooga-booga.dev
docker-build:
docker build -t galaxy-generator:${VERSION} -f Dockerfile .
docker-tag:
docker tag galaxy-generator:${VERSION} ${REGISTRY}/galaxy-generator:${VERSION}
docker-push:
docker push ${REGISTRY}/galaxy-generator:${VERSION}
build:
cd src && go build -o ./release/ ./cmd/api/main.go
galaxy:
cd src && go run ./cmd/generator/main.go
api :
cd src && go run ./cmd/api/main.go