repos

darkfurrow.com-rust

mirror archived upstream

A living almanac of seasons, soil, and the quiet knowledge that used to be common. Rust axum with minijinja and Vite.

agriculturealmanacaxumfolk-knowledgegardeningminijinjarustseasonalvite

343 B · 15 lines Raw History
 1#!/bin/sh
 2
 3while read oldrev newrev ref; do
 4  if [ "$ref" = "refs/heads/master" ]; then
 5    unset GIT_DIR
 6    START_TIME=$(date +%s)
 7    cd /srv/docker/darkfurrow.com
 8    git pull
 9    docker compose up --build --detach
10    docker system prune --force
11    END_TIME=$(date +%s)
12    echo "Total build time: $((END_TIME - START_TIME))s"
13  fi
14done