Skip to content

Commit e97f961

Browse files
committed
Automated updating versions in Dockerfiles.
1 parent 5ab123b commit e97f961

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

google-cloud-spanner/pom.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@
6060
<executions>
6161
<execution>
6262
<goals>
63-
<!--<goal>integration-test</goal>-->
64-
<goal>verify</goal>
63+
<goal>integration-test</goal>
6564
</goals>
6665
</execution>
6766
</executions>

utilities/update_pom_version.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ echo "Changing version from ${CURRENT_VERSION_BASE}-*${CURRENT_SNAPSHOT} to ${NE
3939
for item in ${module_folders[*]}
4040
do
4141
sed -ri "0,/<version>$CURRENT_VERSION_BASE/s/<version>${CURRENT_VERSION_BASE}(-[a-z]+)?[^<]*/<version>${NEW_VERSION_BASE}\1${NEW_SNAPSHOT}/" ${item}/pom.xml
42+
if [ -w ${item}/src/main/docker/Dockerfile ]
43+
then
44+
sed -ri "s/${CURRENT_VERSION_BASE}(-[a-z]+)?(-SNAPSHOT)?/${NEW_VERSION_BASE}\1${NEW_SNAPSHOT}/" ${item}/src/main/docker/Dockerfile
45+
fi
4246
done
4347
sed -ri "0,/<core.version>$CURRENT_VERSION_BASE/s/<core.version>${CURRENT_VERSION_BASE}(-[a-z]+)?[^<]*/<core.version>${NEW_VERSION_BASE}\1${NEW_SNAPSHOT}/" pom.xml
4448
sed -ri "0,/<beta.version>$CURRENT_VERSION_BASE/s/<beta.version>${CURRENT_VERSION_BASE}(-[a-z]+)?[^<]*/<beta.version>${NEW_VERSION_BASE}\1${NEW_SNAPSHOT}/" pom.xml

0 commit comments

Comments
 (0)