From c2b80cdcf156c6a41a884bab7a1956c63f8a0d60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enrique=20Garci=CC=81a=20Cota?= Date: Fri, 8 Apr 2022 22:04:01 +0200 Subject: [PATCH] chore(scripts) add missing update_docker function This function was removed by mistake on a script refactor (#8078). It was cherry-picked back into the master branch (#8495) but not to the release/2.8.x branch. It is not needed for kong to work, but it might be needed in order to do the post-release steps of a hypothetical 2.8.2 release. --- scripts/common.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/scripts/common.sh b/scripts/common.sh index d741b616581..ede58fe4e67 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -604,6 +604,26 @@ function merge_docker() { " $0 $version submit_docker" } + +#------------------------------------------------------------------------------- +function update_docker { + if [ -d ../docker-kong ] + then + cd ../docker-kong + else + cd .. + git clone https://github.com/kong/docker-kong + cd docker-kong + fi + + git pull + git checkout -B "release/$1" + + set -e + ./update.sh "$1" +} + + #------------------------------------------------------------------------------- function submit_docker() { version=$1