mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-25 12:50:54 +02:00
Adds some automation
This commit is contained in:
parent
0f6b04926e
commit
0c746730ae
2 changed files with 33 additions and 0 deletions
17
update.sh
Executable file
17
update.sh
Executable file
|
@ -0,0 +1,17 @@
|
|||
#!/bin/bash
|
||||
set -eo pipefail
|
||||
|
||||
current="$(
|
||||
git ls-remote --tags https://github.com/nextcloud/server.git \
|
||||
| awk -F 'refs/tags/' '
|
||||
$2 ~ /^v?[0-9]/ {
|
||||
gsub(/^v|\^.*/, "", $2);
|
||||
print $2;
|
||||
}
|
||||
' \
|
||||
| sort -uV \
|
||||
| tail -1
|
||||
)"
|
||||
|
||||
set -x
|
||||
sed -ri 's/^(ENV NEXTCLOUD_VERSION) .*/\1 '"$current"'/;' ./Dockerfile
|
Loading…
Add table
Add a link
Reference in a new issue