-
Notifications
You must be signed in to change notification settings - Fork 13
/
justfile
45 lines (41 loc) · 1.41 KB
/
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
36
37
38
39
40
41
42
43
44
45
assets:
#!/usr/bin/env bash
set -euxo pipefail
cd waylonwalker.com-obsidian-assets
git add .
git commit -m 'update assets'
git push
clean:
markata clean
build:
markata build
serve:
python -m http.server -b 0.0.0.0 8005 -d markout
tailwind:
npx tailwindcss --input tailwind/app.css --output static/app.css --watch
tailwind-dev:
npx tailwindcss --input tailwind/app.css --output markout/app.css --watch
sync:
aws --endpoint-url https://minio.wayl.one s3 sync . s3://waylonwalker.com \
--exclude "*.venv/**/*" \
--exclude ".markata.cache/*" \
--exclude "node_modules/*" \
--exclude ".git/*" \
--exclude ".mypy_cache/*" \
--exclude ".python-version" \
--exclude ".github/*" \
--exclude "markout/*" \
--exclude ".envrc" \
--exclude ".pre-commit-config.yaml" \
--exclude ".gitignore" \
--delete
sync-md:
aws --endpoint-url https://minio.wayl.one s3 sync . s3://waylonwalker.com --exclude "*" --include "pages/**/*.md"
deploy:
#!/usr/bin/env bash
set -euxo pipefail
podman build -t docker.io/waylonwalker/waylonwalker-com .
version=$(cat version)
podman tag docker.io/waylonwalker/waylonwalker-com docker.io/waylonwalker/waylonwalker-com:$version
podman push docker.io/waylonwalker/waylonwalker-com
podman push docker.io/waylonwalker/waylonwalker-com:$version