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