Add linux/arm64 extended to release setup

Fixes #8257
This commit is contained in:
Bjørn Erik Pedersen
2022-08-05 16:35:24 +02:00
parent c98348416c
commit 45e1084ff2
13 changed files with 447 additions and 1192 deletions

9
release-hook-post-linux.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
# Se https://github.com/gohugoio/hugo/issues/8955
objdump -T dist/hugo_extended_linux_linux_amd64/hugo | grep -E -q 'GLIBC_2.2[0-9]'
RESULT=$?
if [ $RESULT -eq 0 ]; then
echo "Found GLIBC_2.2x in Linux binary, this will not work in older Vercel/Netlify images.";
exit -1;
fi