We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43daef4 commit 4a798d5Copy full SHA for 4a798d5
generate-docker-library.sh
@@ -6,11 +6,21 @@ Maintainers: Miguel Moquillon <miguel.moquillon@silverpeas.org> (@mmoqui)
6
GitRepo: https://github.com/Silverpeas/docker-silverpeas-prod.git
7
EOH
8
9
-for version in `git tag | tac | grep "^[0-9.]\+$"`; do
10
- commit=`git rev-parse ${version}`
+function printVersion() {
11
cat <<-EOE
12
13
-Tags: ${version}
14
-GitCommit: ${commit}
+Tags: $1
+GitCommit: $2
15
EOE
16
-done
+}
+
17
+isFirst=1
18
+for version in `git tag | tac | grep "^[0-9.]\+$"`; do
19
+ commit=`git rev-parse ${version}`
20
+ if [ $isFirst -eq 1 ]; then
21
+ isFirst=0
22
+ printVersion "${version}, latest" ${commit}
23
+ else
24
+ printVersion "${version}" ${commit}
25
+ fi
26
+done
0 commit comments