mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-23 04:41:17 -05:00
13 lines
451 B
Makefile
13 lines
451 B
Makefile
default: deploy
|
|
|
|
dev +command:
|
|
docker compose -f docker-compose.yml -f docker-compose.dev.yml {{command}}
|
|
|
|
deploy build="":
|
|
git pull
|
|
# Use shell scripting for conditional logic
|
|
BUILD_OPTION="{{ if build != "" { "--build" } else { "" } }}"
|
|
docker compose up $BUILD_OPTION --pull=always -d
|
|
# Use shell scripting for conditional logic
|
|
if [ -z "{{ build }}" ]; then docker compose restart website; fi
|
|
docker system prune -f
|