Browse Source

tool: Update docker image version when updating nextcloud server

pull/160/head
jld3103 2 years ago
parent
commit
f8a00897b0
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 6
      tool/update.sh

6
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)" 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 reset --hard "$latest_tag"
git submodule update 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 else
echo "$1 not found" echo "$1 not found"

Loading…
Cancel
Save