-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
44 lines (36 loc) · 1.17 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
commit := `git rev-parse HEAD`
shortcommit := `git rev-parse --short HEAD`
tag := `git tag --points-at HEAD`
transport := "docker://"
registry := "docker.io"
image := "petergrace/billyjoule"
all: build-x86_64 image
#build-aarch64:
# cross build --target aarch64-unknown-linux-gnu --release
build-x86_64:
cross build --target x86_64-unknown-linux-gnu --release
#build: build-aarch64 build-x86_64
image:
docker buildx build --no-cache --push --platform linux/amd64 \
-t {{registry}}/{{image}}:latest \
-t {{registry}}/{{image}}:{{shortcommit}} \
-t {{registry}}/{{image}}:{{commit}} \
-t {{registry}}/{{image}}:{{tag}} \
.
image-experimental:
docker buildx build --no-cache --push --platform linux/amd64,linux/arm64/v8 \
-t {{registry}}/{{image}}:{{shortcommit}} \
-t {{registry}}/{{image}}:{{commit}} \
-t {{registry}}/{{image}}:experimental \
.
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 major --execute
test:
cargo build
docker-compose rm -f
docker-compose build --force --no-cache
docker-compose up