From 1a801996dea89ca368e61dbc77908d46517e2749 Mon Sep 17 00:00:00 2001
From: Paul Abel
Date: Tue, 27 May 2025 13:37:01 +0100
Subject: [PATCH] trigger an image rebuild if the js or conf files change,
don't trigger a binary built
---
.github/scripts/variables.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/scripts/variables.sh b/.github/scripts/variables.sh
index cbea150249..5ca4c54b79 100755
--- a/.github/scripts/variables.sh
+++ b/.github/scripts/variables.sh
@@ -13,12 +13,12 @@ if [ "$PWD" != "$ROOTDIR" ]; then
fi
get_docker_md5() {
- docker_md5=$(find build .github/data/version.txt -type f ! -name "*.md" -exec md5sum {} + | LC_ALL=C sort | md5sum | awk '{ print $1 }')
+ docker_md5=$(find build .github/data/version.txt internal/configs/njs internal/configs/oidc -type f ! -name "*.md" -exec md5sum {} + | LC_ALL=C sort | md5sum | awk '{ print $1 }')
echo "${docker_md5:0:8}"
}
get_go_code_md5() {
- find . -type f \( -name "*.go" -o -name go.mod -o -name go.sum -o -name "*.tmpl" -o -name "version.txt" -o -name "*.js" -o -name "*.conf" \) -not -path "./site*" -exec md5sum {} + | LC_ALL=C sort | md5sum | awk '{ print $1 }'
+ find . -type f \( -name "*.go" -o -name go.mod -o -name go.sum -o -name "*.tmpl" -o -name "version.txt" \) -not -path "./site*" -exec md5sum {} + | LC_ALL=C sort | md5sum | awk '{ print $1 }'
}
get_tests_md5() {