-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
31 lines (24 loc) · 743 Bytes
/
justfile
File metadata and controls
31 lines (24 loc) · 743 Bytes
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
registry := "ghcr.io/schommie"
# Cross-build both images for arm64
build:
podman build --platform linux/arm64 -t {{registry}}/ev-can-bridge:latest ./can-bridge
podman build --platform linux/arm64 -t {{registry}}/ev-gui:latest ./gui
# Push images to GHCR
push:
podman push {{registry}}/ev-can-bridge:latest
podman push {{registry}}/ev-gui:latest
# Build and push (run on dev machine)
deploy: build push
@echo "Done. Run 'sudo podman auto-update' on the Raspi."
# Start dev environment
dev:
podman-compose -f compose.dev.yml up --build
# Start prod stack
up:
podman-compose up -d
# Stop all services
down:
podman-compose down
# Cargo check (cross-compile for raspi)
check:
cd can-bridge && cargo check