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
16
generate-stackbrew-library.sh
Executable file
16
generate-stackbrew-library.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/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}"
|
Loading…
Add table
Add a link
Reference in a new issue