-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
51 lines (47 loc) · 1.56 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
_NAME = "ivangabriele_tauri"
build:
docker build -f "./dockerfiles/$(_TAG).Dockerfile" -t "ivangabriele/tauri:$(_TAG)" .
build-debian-bullseye-18:
_TAG="debian-bullseye-18" make build
build-debian-bullseye-18-nightly:
_TAG="debian-bullseye-18-nightly" make build
build-debian-bookworm-18:
_TAG="debian-bookworm-18" make build
build-debian-bookworm-18-nightly:
_TAG="debian-bookworm-18-nightly" make build
build-fedora-37-18:
_TAG="fedora-37-18" make build
build-fedora-37-18-nightly:
_TAG="fedora-37-18-nightly" make build
run: --stop-and-remove
make build
docker run -dt --name "$(_NAME)" "ivangabriele/tauri:$(_TAG)"
run-debian-bullseye-18:
_TAG="debian-bullseye-18" make run
run-debian-bullseye-18-nightly:
_TAG="debian-bullseye-18-nightly" make run
run-debian-bookworm-18:
_TAG="debian-bookworm-18" make run
run-debian-bookworm-18-nightly:
_TAG="debian-bookworm-18-nightly" make run
run-fedora-37-18:
_TAG="fedora-37-18" make run
run-fedora-37-18-nightly:
_TAG="fedora-37-18-nightly" make run
test: run
DOCKER_CONTAINER_NAME="$(_NAME)" DOCKER_IMAGE_TAG="$(_TAG)" npx -q jest
test-debian-bullseye-18:
_TAG="debian-bullseye-18" make test
test-debian-bullseye-18-nightly:
_TAG="debian-bullseye-18-nightly" make test
test-debian-bookworm-18:
_TAG="debian-bookworm-18" make test
test-debian-bookworm-18-nightly:
_TAG="debian-bookworm-18-nightly" make test
test-fedora-37-18:
_TAG="fedora-37-18" make test
test-fedora-37-18-nightly:
_TAG="fedora-37-18-nightly" make test
--stop-and-remove:
docker stop "$(_NAME)" || true 2>/dev/null
docker rm "$(_NAME)" || true 2>/dev/null