Skip to content
This repository has been archived by the owner on Jun 22, 2018. It is now read-only.

Commit

Permalink
[Release 0.10.0] pre-tag commit
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-sandor committed Aug 3, 2016
1 parent fdd9d0a commit 765f1bd
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions build.gradle
Expand Up @@ -92,17 +92,19 @@ task checkDockerAuthentication << {
}

task setVersionInBashScript << {
// set explicit version in bash script
ant.replace(file: "bin/minimesos", token: "MINIMESOS_TAG=\"latest\"", value: "MINIMESOS_TAG=\"${project.version}\"")
// commit modified files
exec {
workingDir "${project.rootDir}"
commandLine "git", "commit", "-a", "-m", "[Release ${project.version}] pre-tag commit"
}
// push update to repository
exec {
workingDir "${project.rootDir}"
commandLine "git", "push"
if (new File(project.rootDir, "bin/minimesos").text.contains('MINIMESOS_TAG="latest"')) {
// set explicit version in bash script
ant.replace(file: "bin/minimesos", token: 'MINIMESOS_TAG="latest"', value: "MINIMESOS_TAG=\"${project.version}\"")
// commit modified files
exec {
workingDir "${project.rootDir}"
commandLine "git", "commit", "-a", "-m", "[Release ${project.version}] pre-tag commit"
}
// push update to repository
exec {
workingDir "${project.rootDir}"
commandLine "git", "push"
}
}
}

Expand Down

0 comments on commit 765f1bd

Please sign in to comment.