-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathMakefile
42 lines (30 loc) · 1016 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
# Copyright (c) 2019 Target Brands, Inc. All rights reserved.
#
# Use of this source code is governed by the LICENSE file in this repository.
restart: down up
up: build compose-up
down: compose-down
rebuild: build compose-up
clean:
#################################
###### Go clean ######
#################################
@go mod tidy
@go vet ./...
@go fmt ./...
@echo "I'm kind of the only name in clean energy right now"
build:
#################################
###### Build Binary ######
#################################
GOOS=linux CGO_ENABLED=0 go build -o release/vela-server github.com/go-vela/server/cmd/server
compose-up:
#################################
###### Docker Build/Start ######
#################################
@docker-compose -f docker-compose.yml up -d --build # build and start app
compose-down:
#################################
###### Docker Tear Down ######
#################################
@docker-compose -f docker-compose.yml down