10000 add variables script to release branch (#5254) · nginx/kubernetes-ingress@9b72073 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b72073

Browse files
authored
add variables script to release branch (#5254)
1 parent fe98b86 commit 9b72073

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/scripts/variables.sh

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
3+
if [ "$1" = "" ]; then
4+
echo "ERROR: parameter needed"
5+
exit 2
6+
fi
7+
8+
INPUT=$1
9+
ROOTDIR=$(git rev-parse --show-toplevel || echo ".")
10+
if [ "$PWD" != "$ROOTDIR" ]; then
11+
# shellcheck disable=SC2164
12+
cd "$ROOTDIR";
13+
fi
14+
15+
case $INPUT in
16+
docker_md5)
17+
docker_md5=$(find . -type f \( -name "Dockerfile" -o -name version.txt \) -not -path "./tests*" -exec md5sum {} + | LC_ALL=C sort | md5sum | awk '{ print $1 }')
18+
echo "docker_md5=${docker_md5:0:8}"
19+
;;
20+
21+
go_code_md5)
22+
echo "go_code_md5=$(find . -type f \( -name "*.go" -o -name go.mod -o -name go.sum -o -name "*.tmpl" \) -not -path "./docs*" -exec md5sum {} + | LC_ALL=C sort | md5sum | awk '{ print $1 }')"
23+
;;
24+
25+
*)
26+
echo "ERROR: option not found"
27+
exit 2
28+
;;
29+
esac

build/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode
208208

209209

210210
############################################# Base image for UBI with NGINX Plus and App Protect WAF/DoS #############################################
211-
FROM redhat/ubi8@sha256:627867e53ad6846afba2dfbf5cef1d54c868a9025633ef0afd546278d4654eac as ubi-plus-nap
211+
FROM redhat/ubi8@sha256:bce7e9f69fb7d4533447232478fd825811c760288f87a35699f9c8f030f2c1a6 as ubi-plus-nap
212212
ARG NAP_MODULES
213213

214214
RUN --mount=type=secret,id=nginx-repo.crt,dst=/etc/ssl/nginx/nginx-repo.crt,mode=0644 \

0 commit comments

Comments
 (0)
0