kycnot.me/Justfile
2024-03-04 21:23:06 +01:00

19 lines
411 B
Makefile

default: deploy
dev +command:
docker compose -f docker-compose.yml -f docker-compose.dev.yml {{command}}
deploy build="":
#!/bin/bash
git pull
if [ -z "{{ build }}" ]; then
build_flag=""
else
build_flag="--build"
fi
docker compose up --pull=always -d $build_flag
if [ -z "{{ build }}" ]; then docker compose restart website; fi
docker system prune -f