mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-01-09 06:07:56 -05:00
14 lines
484 B
Makefile
14 lines
484 B
Makefile
default: deploy
|
|
|
|
dev +command:
|
|
docker compose -f docker-compose.yml -f docker-compose.dev.yml {{command}}
|
|
|
|
deploy build="":
|
|
git pull
|
|
# Set variable for build option
|
|
{{ set build_option = if build != "" { "--build" } else { "" } }}
|
|
docker compose up {{ build_option }} --pull=always -d
|
|
# Set variable for restart command
|
|
{{ set restart_cmd = if build == "" { "docker compose restart website" } else { "" } }}
|
|
{{ restart_cmd }}
|
|
docker system prune -f
|