chore: add docs to just commands

This commit is contained in:
Alexander Navarro 2025-04-15 16:33:55 -04:00
parent 1815487517
commit 6cf98d1f1a
2 changed files with 9 additions and 2 deletions

View file

@ -5,24 +5,30 @@ release_mode := "dev"
container_registry := "git.alecodes.page/alecodes"
container_image_name := container_registry / bin_name
# Start dev server
dev:
watchexec --clear --restart --watch=frontend --watch=src cargo run {{ if release_mode == "prod" { "--release" } else { "" } }}
# Build the container locally
build:
podman build --tag {{ container_image_name }}:latest --cache-to {{ container_image_name }}-cache --cache-from {{ container_image_name }}-cache .
# Run tests
test:
cargo test
publish: (build)
podman push {{ container_image_name }}:latest
# Publish the project to the container registry
publish +TAGS='latest':
for tag in {{ TAGS }}; do podman push {{ container_image_name }}:latest {{ container_image_name }}:${tag}; done
podman push {{ container_image_name }}:latest {{ container_image_name }}:$(git rev-parse --short HEAD)
deploy:
# Delete build artifacts
clean:
podman system prune --build
cargo clean
# Bump crate version, this will also publish it
bump:
cog bump --auto