From dfb36a82c634b35891589cf7fce6a5f2ee6da566 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Tue, 12 Jun 2018 13:04:12 -0400 Subject: [PATCH] Build greenkeeper branches --- .circleci/docker.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.circleci/docker.sh b/.circleci/docker.sh index 1acd51cb..56407c13 100644 --- a/.circleci/docker.sh +++ b/.circleci/docker.sh @@ -6,17 +6,12 @@ DATE=`date +%Y-%m-%d` DOCKER_REPOSITORY="pelias" DOCKER_PROJECT="${DOCKER_REPOSITORY}/${CIRCLE_PROJECT_REPONAME}" -# skip builds on greenkeeper branches -if [[ -z "${CIRCLE_BRANCH##*greenkeeper*}" ]]; then - exit 0 -fi - # the name of the image that represents the "branch", that is an image that will be updated over time with the git branch # the production branch is changed to "latest", otherwise the git branch becomes the name of the version if [[ "${CIRCLE_BRANCH}" == "production" ]]; then DOCKER_BRANCH_IMAGE_VERSION="latest" else - DOCKER_BRANCH_IMAGE_VERSION="${CIRCLE_BRANCH}" + DOCKER_BRANCH_IMAGE_VERSION="${CIRCLE_BRANCH/\//-}" #slashes are not valid in docker tags. replace with dashes fi DOCKER_BRANCH_IMAGE_NAME="${DOCKER_PROJECT}:${DOCKER_BRANCH_IMAGE_VERSION}"