From f8a00897b067521ca1eb99e29ce649c070eef5cb Mon Sep 17 00:00:00 2001 From: jld3103 Date: Fri, 16 Dec 2022 13:10:44 +0100 Subject: [PATCH] tool: Update docker image version when updating nextcloud server --- tool/update.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tool/update.sh b/tool/update.sh index 99410c6c..10c93121 100755 --- a/tool/update.sh +++ b/tool/update.sh @@ -23,6 +23,12 @@ elif [ -d "external/nextcloud-$1" ]; then latest_tag="$(git tag --sort=v:refname | grep -vi "rc" | grep -vi "alpha" | grep -vi "beta" | tail -n 1)" git reset --hard "$latest_tag" git submodule update + + if [[ "$1" == "server" ]]; then + # shellcheck disable=SC2001 + image_version=$(echo "$latest_tag" | sed "s/^v//") + sed -i "s/FROM nextcloud:.*/FROM nextcloud:$image_version/" ../../tool/Dockerfile.dev + fi ) else echo "$1 not found"