Browse Source

Fix CircleCI script to skip Greenkeeper branch builds

Somehow I completely failed at copying code [from
StackOverflow](https://speakerdeck.com/noelrap/the-road-to-legacy-is-paved-with-good-intentions) in https://github.com/pelias/api/pull/983.

Instead of skipping Docker image builds only for branches with
greenkeeper in the name, it _always_ skipped the build!

Connects https://github.com/pelias/dockerfiles/issues/21
pull/988/head
Julian Simioni 7 years ago
parent
commit
4f74818742
No known key found for this signature in database
GPG Key ID: 6DAD08919FDBF563
  1. 2
      .circleci/docker.sh

2
.circleci/docker.sh

@ -7,7 +7,7 @@ DOCKER_REPOSITORY="pelias"
DOCKER_PROJECT="${DOCKER_REPOSITORY}/${CIRCLE_PROJECT_REPONAME}"
# skip builds on greenkeeper branches
if [ "${CIRCLE_BRANCH##greenkeeper}" ]; then
if [[ -z "${CIRCLE_BRANCH##*greenkeeper*}" ]]; then
exit 0
fi

Loading…
Cancel
Save