Docker/-compose
This commit is contained in:
23
Script/Bump_Version.sh
Normal file
23
Script/Bump_Version.sh
Normal file
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Checking if correct number of arguments are provided
|
||||
if [ "$#" -ne 2 ]; then
|
||||
echo "Required CLI args missing: [old_version, new_version]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Assigning command line arguments to variables
|
||||
old_version="$1"
|
||||
new_version="$2"
|
||||
|
||||
old_version_alt=${old_version//-/–}
|
||||
new_version_alt=${new_version//-/–}
|
||||
|
||||
# Replacing old_version with new_version in README.md
|
||||
sed -i "s/version-$old_version_alt-orange/version-$new_version_alt-orange/g" README.md
|
||||
sed -i "s/<version>$old_version/<version>$new_version/g" pom.xml
|
||||
sed -i "s/easydrop-$old_version.jar/easydrop-$new_version.jar/g" Dockerfile
|
||||
sed -i "s/image: easydrop:$old_version/image: easydrop:$new_version/g" docker-compose.yml
|
||||
|
||||
echo "Version number updated successfully"
|
||||
|
||||
@@ -2,6 +2,5 @@ mvn clean verify sonar:sonar -Pcoverage \
|
||||
-Dsonar.projectKey=EasyDrop \
|
||||
-Dsonar.projectName='EasyDrop' \
|
||||
-Dsonar.host.url=http://localhost:9000 \
|
||||
-Dsonar.token=sqp_82d35689c620c15fd1064549375e17a2a5b0b931
|
||||
|
||||
start http://localhost:9000/dashboard?id=EasyDrop
|
||||
-Dsonar.token=sqp_82d35689c620c15fd1064549375e17a2a5b0b931 \
|
||||
&& start http://localhost:9000/dashboard?id=EasyDrop
|
||||
Reference in New Issue
Block a user