-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
27 lines (24 loc) · 846 Bytes
/
justfile
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
commit := `git rev-parse HEAD`
shortcommit := `git rev-parse HEAD`
transport := "docker://"
registry := "reg.gfpd.us"
image := "library/libvirt_autoscaler"
tag := `git describe --tags || echo dev`
with-protos:
GENERATE_PROTOS=true cargo build
build:
cross build --release --target x86_64-unknown-linux-gnu
cross build --release --target aarch64-unknown-linux-gnu
make-image:
docker buildx build --no-cache --push --platform linux/amd64,linux/arm64/v8 \
-t {{registry}}/{{image}}:latest \
-t {{registry}}/{{image}}:{{shortcommit}} \
-t {{registry}}/{{image}}:{{commit}} \
-t {{registry}}/{{image}}:{{tag}} \
.
release-patch:
cargo release --no-publish --no-verify patch --execute
release-minor:
cargo release --no-publish --no-verify minor --execute
release-major:
cargo release --no-publish --no-verify minor --execute