#!/bin/sh set -e # The checkout this script lives in, wherever it was cloned PROJECT="$(cd "$(dirname "$0")" && pwd)" echo "Deploy started at $(date)" cd "$PROJECT" git fetch origin main git reset --hard origin/main docker compose up -d --build 2>&1 echo "Deploy finished at $(date)"