refactor: reorganized Justfile

This commit is contained in:
2026-03-08 15:54:32 +07:00
parent 2f798c3591
commit 11e84ab545

View File

@@ -12,6 +12,21 @@ _default:
@echo " VERSION: {{VERSION}}" @echo " VERSION: {{VERSION}}"
@just --list @just --list
### Container Management ###
# Start the database and wait until it's healthy
up db=VARIANT:
just build {{db}}
docker compose -f {{db}}/compose.yml up -d --wait
# Stop the database container but preserve data volumes
down db=VARIANT:
docker compose -f {{db}}/compose.yml down
# Stop the database container and remove data volumes
clean db=VARIANT:
docker compose -f {{db}}/compose.yml down -v
### Build & Publish ### ### Build & Publish ###
# Build image locally # Build image locally
@@ -35,19 +50,6 @@ push db=VARIANT:
### Tests ### ### Tests ###
# Start the database and wait until it's healthy
up db=VARIANT:
just build {{db}}
docker compose -f {{db}}/compose.yml up -d --wait
# Stop the database container but preserve data volumes
down db=VARIANT:
docker compose -f {{db}}/compose.yml down
# Stop the database container and remove data volumes
clean db=VARIANT:
docker compose -f {{db}}/compose.yml down -v
# Run tests against a database variant # Run tests against a database variant
test db=VARIANT: test db=VARIANT:
@case "{{db}}" in \ @case "{{db}}" in \