From 90a380e74aa94199f2db9b91341c3bcea49b970a Mon Sep 17 00:00:00 2001 From: Andy Zhang Date: Sat, 12 Oct 2024 18:00:29 +0800 Subject: [PATCH] chore(release): execute the update-copyright script in the docker container with all necessary dependencies --- scripts/release-lib.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/release-lib.sh b/scripts/release-lib.sh index 20e474c7372ee..6008c39cef48b 100644 --- a/scripts/release-lib.sh +++ b/scripts/release-lib.sh @@ -120,7 +120,10 @@ function commit_changelog() { function update_copyright() { version=$1 - if ! "$scripts_folder/update-copyright" + DIR=$(dirname "$0") + PDIR=$(dirname "$DIR") + + if ! (docker build -t kong/update-copyright ${DIR} && docker run -v ${PDIR}:/workspace --rm kong/update-copyright) then die "Could not update copyright file. Check logs for missing licenses, add hardcoded ones if needed" fi