Live video on the AT Protocol
1#!/bin/bash
2
3set -eu
4printf "variables:\n DOCKERFILE_HASH: $(git hash-object docker/build.Dockerfile)" > .ci/dockerfile-hash.yaml
5git add .ci/dockerfile-hash.yaml
6if ! git diff-index --quiet --cached HEAD --; then
7 git commit --amend -C HEAD --no-verify
8 echo "postcommit hook automatically amended commit to include new dockerfile hash"
9fi