Skip to content

Commit

Permalink
chore(scripts) restore update_docker function
Browse files Browse the repository at this point in the history
This function was removed accidentally in #8078
  • Loading branch information
kikito committed Mar 3, 2022
1 parent 44240d3 commit 3a0429c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,24 @@ 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 3a0429c

Please sign in to comment.