erick.is/Makefile

34 lines
579 B
Makefile

args :=
default: clean start
start:
docker compose up -d
rebuild:
docker compose up -d --build
stop:
docker compose down
clean:
\rm -rf .jekyll-cache _site
docker compose down -v
logs:
docker compose logs --follow --since 1m
build:
docker compose run --rm -e JEKYLL_ENV=production jekyll build
install:
docker compose run --rm --entrypoint bash jekyll -c bundle add ${args}
make draft:
docker compose run --rm jekyll draft ${args}
make publish:
docker compose run --rm jekyll publish ${args}
make unpublish:
docker compose run --rm jekyll unpublish ${args}