forked from mailtutan/mailtutan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (26 loc) · 740 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
#
# Makefile
# Just for making development convenient
#
all: build-web build-backend
run:
cargo run -p mailtutan
build-backend:
cargo build --release
strip target/release/mailtutan
build-web:
(cd mailtutan-web && trunk build --release)
cp mailtutan-web/dist/* mailtutan-lib/dist/
trunk:
(cd mailtutan-web && trunk serve)
publish:
cargo publish -p mailtutan-web
cargo publish -p mailtutan-lib
cargo publish -p mailtutan
VERSION := $(shell toml get Cargo.toml workspace.package.version --raw)
docker-build:
docker build . -t mailtutan/mailtutan:$(VERSION)
docker-push:
docker tag mailtutan/mailtutan:$(VERSION) mailtutan/mailtutan:latest
docker push mailtutan/mailtutan:$(VERSION)
docker push mailtutan/mailtutan:latest