forked from AOEpeople/vistecture
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 loc) · 1.03 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
SOURCES=vistecture.go
VERSION=2.0.9
.PHONY: all templates darwin linux windows default
default: darwin
all: darwin linux windows
templates:
packr2
echo "package web \n import _ \"github.com/AOEpeople/vistecture/v2/packrd\"" > controller/web/web-packr.go
mkdir -p build-artifacts
zip -qr build-artifacts/templates.zip templates
darwin: $(SOURCES) templates
GOOS=darwin go build -o build-artifacts/vistecture $(SOURCES)
linux: $(SOURCES) templates
GOOS=linux go build -o build-artifacts/vistecture-linux $(SOURCES)
windows: $(SOURCES) templates
GOOS=windows go build -o build-artifacts/vistecture.exe $(SOURCES)
dockerpublish:
docker build --no-cache -t aoepeople/vistecture .
docker tag aoepeople/vistecture:latest aoepeople/vistecture:$(VERSION)
docker push aoepeople/vistecture:latest
docker push aoepeople/vistecture:$(VERSION)
dockerpublishexampleproject:
cd example && ./generate-docs-with-docker.sh
cd example && docker build --no-cache -t aoepeople/vistecture-example .
docker push aoepeople/vistecture-example:latest