Skip to content
Permalink
Browse files

Fallback to DOCKER_TAG when setting version. (#585)

  • Loading branch information
hexedpackets committed Nov 20, 2019
1 parent 161741f commit 1f34d21d57e2232648bc8b2f5e3e9b3011e611eb
Showing with 2 additions and 7 deletions.
  1. +2 −7 build.gradle
@@ -29,13 +29,8 @@ def getGitHash = { ->
allprojects {
group = 'com.spotify.heroic'

def tag = System.getenv('TRAVIS_TAG')
if (tag == null) {
version = '0.0.1-SNAPSHOT'
} else {
version = tag
}

version = System.getenv('TRAVIS_TAG') ?: System.getenv('DOCKER_TAG') ?: '0.0.1-SNAPSHOT'

ext.gitCommit = getGitHash()

apply plugin: "io.spring.dependency-management"

0 comments on commit 1f34d21

Please sign in to comment.
You can’t perform that action at this time.