-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
36 lines (27 loc) · 841 Bytes
/
justfile
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
set positional-arguments
set shell := ["bash", "-cue"]
root_dir := `git rev-parse --show-toplevel`
# Default recipe to list all recipes.
[private]
default:
just --list --no-aliases
alias fmt := format
# Format manifests.
format *args:
@cd "{{root_dir}}" && \
yamlfmt **/*.y{a,}ml
alias apply := deploy
# Apply manifests to the cluster.
deploy *args:
@cd "{{root_dir}}" && \
kubectl apply --kustomize .
alias dev := nix-develop
# Enter a Nix development shell.
nix-develop *args:
@echo "Starting nix developer shell in './tools/nix/flake.nix'."
@cd "{{root_dir}}" && \
cmd=("$@") && \
{ [ -n "${cmd:-}" ] || cmd=("zsh"); } && \
nix develop ./tools/nix#default --accept-flake-config --command "${cmd[@]}"
# Manage secrets. Run `just secrets` for more info
mod secrets 'tools/just/secrets.just'