2020-06-30 15:18:42 +00:00
|
|
|
BIN=target/release/garage
|
|
|
|
DOCKER=lxpz/garage_amd64
|
|
|
|
|
2020-04-05 21:33:42 +00:00
|
|
|
all:
|
2020-04-26 20:39:32 +00:00
|
|
|
#cargo fmt || true
|
2020-07-07 15:15:53 +00:00
|
|
|
#RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build
|
|
|
|
cargo build
|
2020-06-30 15:18:42 +00:00
|
|
|
|
|
|
|
$(BIN):
|
2020-07-07 15:15:53 +00:00
|
|
|
#RUSTFLAGS="-C link-arg=-fuse-ld=lld" cargo build --release
|
|
|
|
cargo build --release
|
2020-06-30 15:18:42 +00:00
|
|
|
|
|
|
|
$(BIN).stripped: $(BIN)
|
|
|
|
cp $^ $@
|
|
|
|
strip $@
|
|
|
|
|
|
|
|
docker: $(BIN).stripped
|
|
|
|
docker build -t $(DOCKER):$(TAG) .
|
|
|
|
docker push $(DOCKER):$(TAG)
|
|
|
|
docker tag $(DOCKER):$(TAG) $(DOCKER):latest
|
|
|
|
docker push $(DOCKER):latest
|
|
|
|
|