-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
53 lines (41 loc) · 1.36 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
45
46
47
48
49
50
51
52
53
#!/usr/bin/env -S just --justfile
image_base := "ghcr.io/verseghy"
image_tag := "v7"
image_rust_version := "1.83"
_default:
@just --list --unsorted
install-tools:
cargo install cargo-deny --locked
cargo install cargo-llvm-cov --locked
test-coverage:
@cargo llvm-cov --ignore-filename-regex "(migration|entity|cmds)/.*" nextest
fmt:
cargo fmt --all
clippy:
cargo clippy --all --all-targets --all-features
[private]
build-image NAME FILE:
podman build \
--file "{{FILE}}" \
--tag {{image_base}}/{{NAME}}:{{image_tag}} \
--build-arg RUST_VERSION="{{image_rust_version}}" \
.
[group("build")]
build-setup-image: (build-image "matverseny-setup" "containerfiles/setup.Containerfile")
[group("build")]
build-migration-image: (build-image "matverseny-migration" "containerfiles/migration.Containerfile")
[group("build")]
build-backend-image: (build-image "matverseny-backend" "Containerfile")
[group("build")]
build-images: build-setup-image build-migration-image build-backend-image
[private]
push-image NAME:
podman push {{image_base}}/{{NAME}}:{{image_tag}}
[group("push")]
push-setup-image: (push-image "matverseny-setup")
[group("push")]
push-migration-image: (push-image "matverseny-migration")
[group("push")]
push-backend-image: (push-image "matverseny-backend")
[group("push")]
push-images: push-setup-image push-migration-image push-backend-image