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