#!/usr/bin/env bash
set -euo pipefail

# Apply the manifests, then record why this rollout happened.
kubectl apply -f k8s/

cause="$(git log -1 --format='%h %s')"
kubectl annotate deployment/checkout \
  kubernetes.io/change-cause="$cause" --overwrite
