Fixed tagging, fixed self versioning, and push latest

This commit is contained in:
2019-07-18 16:50:57 -04:00
parent 03c2ece9a2
commit 081fe41c82
3 changed files with 8 additions and 8 deletions

6
Jenkinsfile vendored
View File

@ -6,12 +6,12 @@ pipeline {
environment {
SERVICE = 'auto-semver'
GITHUB_KEY = 'autosemverDeployKey'
GITHUB_URL = 'https://github.com/RightBrain-Networks/auto-semver'
GITHUB_URL = 'git@github.com:RightBrain-Networks/auto-semver.git'
DOCKER_REGISTRY = '356438515751.dkr.ecr.us-east-1.amazonaws.com'
//Image tag to use for self-versioning
SELF_SEMVER_TAG = "HEAD"
SELF_SEMVER_TAG = "bugfix.pipeline"
}
stages {
@ -79,7 +79,7 @@ pipeline {
sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:${env.VERSION}"
script
{
if("${env.BRANCH_NAME}" != "develop")
if("${env.BRANCH_NAME}" == "develop")
{
sh "docker tag ${env.DOCKER_REGISTRY}/${env.SERVICE}:${env.VERSION} ${env.DOCKER_REGISTRY}/${env.SERVICE}:latest"
sh "docker push ${env.DOCKER_REGISTRY}/${env.SERVICE}:latest"