Files
plex-playlist/scripts/compute-cicd-base-hash.sh
copilotcoder 84e3bb57c8 Missed a couple changes.
Signed-off-by: copilotcoder <copilotcoder@darkhelm.org>
2026-05-26 16:09:21 -04:00

21 lines
420 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_DIR="$(cd "${SCRIPT_DIR}/.." && pwd)"
inputs=(
"${PROJECT_DIR}/Dockerfile.cicd-base"
"${PROJECT_DIR}/.dockerignore"
)
for input in "${inputs[@]}"; do
if [[ ! -f "${input}" ]]; then
echo "missing hash input: ${input}" >&2
exit 1
fi
done
sha256sum "${inputs[@]}" | sha256sum | cut -c1-16