-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
50 lines (41 loc) · 1.6 KB
/
justfile
File metadata and controls
50 lines (41 loc) · 1.6 KB
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
# Image naam en tag op basis van git branch
image := "moza-site:" + `git branch --show-current`
[private]
default:
@just --list
# Start development server
up:
./setup-dev.sh
docker run -it --rm -v $PWD/structurizr:/usr/local/structurizr structurizr/cli export --workspace workspace.dsl --format static --output ./diagrammen
mkdir -p static/diagrammen/ && cp -r structurizr/diagrammen/* ./static/diagrammen/
hugo server
# Bouw de site
build:
./setup-dev.sh
docker run -it --rm -v $PWD/structurizr:/usr/local/structurizr structurizr/cli export --workspace workspace.dsl --format static --output ./diagrammen
mkdir -p static/diagrammen/ && cp -r structurizr/diagrammen/* ./static/diagrammen/
rm -rf public && hugo --minify --gc --logLevel warn
# Controleer op broken links
check:
./setup-dev.sh
docker run -it --rm -v $PWD/structurizr:/usr/local/structurizr structurizr/cli export --workspace workspace.dsl --format static --output ./diagrammen
mkdir -p static/diagrammen/ && cp -r structurizr/diagrammen/* ./static/diagrammen/
rm -rf .htmltest && hugo --minify --quiet --destination .htmltest/public && htmltest && rm -rf .htmltest
# Voer pre-commit checks uit
pre-commit:
lefthook run pre-commit
# Bouw container image
cbuild:
podman build -t {{image}} .
# Start container op localhost:8080
crun:
podman run --name moza-site -p 8080:8080 {{image}}
# Stop container
cstop:
podman stop moza-site
podman rm moza-site
# Verwijder container image en build cache
cclean:
podman rm -f moza-site || true
podman rmi {{image}} || true
podman system prune -f