mirror of
https://github.com/nextcloud/docker.git
synced 2024-11-18 02:56:42 +01:00
17 lines
538 B
Bash
17 lines
538 B
Bash
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
||
|
|
||
|
url='git://github.com/nextcloud/docker'
|
||
|
|
||
|
commit="$(git log -1 --format='format:%H' -- Dockerfile $(awk 'toupper($1) == "COPY" { for (i = 2; i < NF; i++) { print $i } }' Dockerfile))"
|
||
|
fullVersion="$(grep -m1 'ENV NEXTCLOUD_VERSION ' ./Dockerfile | cut -d' ' -f3)"
|
||
|
|
||
|
echo '# maintainer: docker@nextcloud.com'
|
||
|
echo
|
||
|
echo "$fullVersion: ${url}@${commit}"
|
||
|
echo "${fullVersion%.*}: ${url}@${commit}"
|
||
|
echo "${fullVersion%.*.*}: ${url}@${commit}"
|
||
|
echo "latest: ${url}@${commit}"
|