Skip to content

Instantly share code, notes, and snippets.

@ErwanAliasr1
Last active March 16, 2018 11:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ErwanAliasr1/5a3bbe234cdab04157930cc229e0ae72 to your computer and use it in GitHub Desktop.
Save ErwanAliasr1/5a3bbe234cdab04157930cc229e0ae72 to your computer and use it in GitHub Desktop.
pwet
function run_tox {
case "$CEPH_ANSIBLE_BRANCH" in
stable-*)
CEPH_DOCKER_IMAGE_TAG=$(find_latest_tag $RELEASE)
;;
master)
CEPH_DOCKER_IMAGE_TAG="latest"
;;
*)
CEPH_DOCKER_IMAGE_TAG=""
;;
esac
[ -n "$CEPH_DOCKER_IMAGE_TAG" ] && start_tox CEPH_DOCKER_IMAGE_TAG="$CEPH_DOCKER_IMAGE_TAG"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment