Skip to content

Commit

Permalink
chore(scripts) add missing update_docker function
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
kikito committed Apr 8, 2022
1 parent 05b7a4a commit c2b80cd
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c2b80cd

Please sign in to comment.