kycnot.me/justfile

19 lines
411 B
Makefile
Raw Normal View History

default: deploy
2024-02-18 16:16:56 +00:00
dev +command:
2024-02-19 08:45:40 +00:00
docker compose -f docker-compose.yml -f docker-compose.dev.yml {{command}}
deploy build="":
2024-03-04 20:23:06 +00:00
#!/bin/bash
2024-02-19 08:45:40 +00:00
git pull
2024-03-04 20:23:06 +00:00
if [ -z "{{ build }}" ]; then
build_flag=""
else
build_flag="--build"
fi
docker compose up --pull=always -d $build_flag
2024-03-04 20:19:02 +00:00
if [ -z "{{ build }}" ]; then docker compose restart website; fi
2024-02-19 18:35:11 +00:00
docker system prune -f