Skip to content

Commit

Permalink
chroe: add earthly
Browse files Browse the repository at this point in the history
  • Loading branch information
pipinet committed Jul 28, 2024
1 parent 34a1cb6 commit cd39fca
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions gradle/version.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
def loadVersion() {
File file = new File("${rootProject.rootDir}/.version")
if (!file.exists()) {
def appVersion = System.getenv('APP_VERSION')
if(appVersion == null){
return '0.0.999'
}
def pipelineId = System.getenv('PIPELINE_ID')
if(pipelineId == null){
return '0.0.999'
}
return file.text + '.' + pipelineId
return appVersion
}

version = loadVersion()
Expand Down

0 comments on commit cd39fca

Please sign in to comment.