forked from buzzfeed/sso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 840 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
version := "v2.1.0"
commit := $(shell git rev-parse --short HEAD)
build: dist/sso-auth dist/sso-proxy
dist/sso-auth:
mkdir -p dist
go generate ./...
go build -mod=readonly -o dist/sso-auth ./cmd/sso-auth
dist/sso-proxy:
mkdir -p dist
go generate ./...
go build -mod=readonly -o dist/sso-proxy ./cmd/sso-proxy
tools:
go get golang.org/x/lint/golint
go get github.com/rakyll/statik
test:
./scripts/test
clean:
rm -r dist
imagepush-commit:
docker build -t buzzfeed/sso-dev:$(commit) .
docker push buzzfeed/sso-dev:$(commit)
imagepush-latest:
docker build -t buzzfeed/sso-dev:latest .
docker push buzzfeed/sso-dev:latest
releasepush:
docker build -t buzzfeed/sso:$(version) -t buzzfeed/sso-dev:latest .
docker push buzzfeed/sso:$(version)
docker push buzzfeed/sso:latest
.PHONY: dist/sso-auth dist/sso-proxy tools