-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
36 lines (26 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
.PHONY: build
TAG=$(shell git describe --abbrev=0 --tags)
DATE=$(shell go run ./scripts/date.go)
build:
@go mod tidy && \
go build -ldflags "-X main.version=$(TAG) -X main.buildDate=$(DATE)" -o tran
install: tran
@mv tran /usr/local/bin
jbtc: # just build tran container without pushing it
@docker build --file ./docker/vm/Dockerfile -t trancli/tran .
btc: # build tran container
@docker push trancli/tran
btcwc: # build tran container with cache
@docker pull trancli/tran:latest && \
docker build -t trancli/tran --cache-from trancli/tran:latest . && \
docker push trancli/tran
jbftc: # just build full tran container without pushing it
@docker build --file ./docker/container/Dockerfile -t trancli/tran-full .
bftc: # build full tran container
@docker push trancli/tran-full
bftcwc: # build full tran container with cache
@docker pull trancli/tran-full:latest && \
docker build -t trancli/tran-full --cache-from trancli/tran-full:latest . && \
docker push trancli/tran-full
ght:
@node ./scripts/gh-tran/gh-trn.js