Skip to content

Commit b4a1456

Browse files
committed
Add tagging script
Change-Id: I5d534475f52f7316f2930ac8107b27697a9fa814
1 parent 94336aa commit b4a1456

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

VERSION

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ declare -A PASSWORDSET
1717
PASSWORDSET["7.5"]="ALTER USER 'root'@'localhost' IDENTIFIED BY '\${MYSQL_ROOT_PASSWORD}';"
1818
PASSWORDSET["7.6"]=${PASSWORDSET["7.5"]}
1919
PASSWORDSET["8.0"]=${PASSWORDSET["7.6"]}
20+
21+
LATEST="8.0"

tag.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
# Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
3+
#
4+
# This program is free software; you can redistribute it and/or modify
5+
# it under the terms of the GNU General Public License as published by
6+
# the Free Software Foundation; version 2 of the License.
7+
#
8+
# This program is distributed in the hope that it will be useful,
9+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+
# GNU General Public License for more details.
12+
#
13+
# You should have received a copy of the GNU General Public License
14+
# along with this program; if not, write to the Free Software
15+
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
16+
set -e
17+
source VERSION
18+
19+
MAJOR_VERSIONS=("${!MYSQL_CLUSTER_VERSIONS[@]}"); [ -n "$1" ] && MAJOR_VERSIONS=("${@:1}")
20+
21+
for MAJOR_VERSION in "${MAJOR_VERSIONS[@]}"; do
22+
if [ "$MAJOR_VERSION" = "$LATEST" ]; then
23+
echo "$MAJOR_VERSION ${MYSQL_CLUSTER_VERSIONS["$MAJOR_VERSION"]} latest"
24+
else
25+
echo "$MAJOR_VERSION ${MYSQL_CLUSTER_VERSIONS["$MAJOR_VERSION"]}"
26+
fi
27+
done

0 commit comments

Comments
 (0)