Push latest remove unneeded var

This commit is contained in:
Layla 2019-07-18 16:30:03 -04:00
parent 6127a74dac
commit 55e53a62be

8
Jenkinsfile vendored
View File

@ -8,7 +8,6 @@ pipeline {
GITHUB_KEY = 'autosemverDeployKey'
GITHUB_URL = 'https://github.com/RightBrain-Networks/auto-semver'
DOCKER_REGISTRY = '356438515751.dkr.ecr.us-east-1.amazonaws.com'
VERSION = ""
//Image tag to use for self-versioning
@ -78,6 +77,13 @@ pipeline {
steps {
withEcr {
sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:${env.VERSION}"
script
{
if("${env.BRANCH_NAME}" == "develop")
{
sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:latest"
}
}
}
}