From ef43c3501175231fa3749c3d7a49b0d4e1ae8830 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/release-lib.sh b/scripts/release-lib.sh index 20e474c7372e..4a88e90b1c8e 100644 --- a/scripts/release-lib.sh +++ b/scripts/release-lib.sh @@ -120,7 +120,9 @@ function commit_changelog() { function update_copyright() { version=$1 - if ! "$scripts_folder/update-copyright" + PDIR=$(dirname "$scripts_folder") + + if ! (docker build -t kong/update-copyright ${scripts_folder} && 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