-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (25 loc) · 868 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (25 loc) · 868 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
32
.PHONY: build backup dry-run test clean
build:
@echo "Building Docker image..."
@docker compose build
backup: build
@echo "Running backup..."
@docker compose run --rm livesync-backup
dry-run: build
@echo "Running dry-run..."
@DRY_RUN=true docker compose run --rm livesync-backup
test:
@echo "Running tests..."
@docker compose run --rm --user root --entrypoint deno livesync-backup test --allow-read --allow-write --allow-env src/tests/
clean:
@echo "Cleaning up Docker images..."
@docker compose down --rmi local
rebuild: clean build
help:
@echo "Available targets:"
@echo " build - Build the Docker image"
@echo " backup - Run a full backup"
@echo " dry-run - Run in dry-run mode (no changes)"
@echo " test - Run the test suite"
@echo " clean - Remove Docker images"
@echo " rebuild - Clean and rebuild from scratch"