From 5ebc11963e8c9862ee605885ba870ff855b5902c Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Tue, 23 Jun 2020 14:42:08 +0200 Subject: [PATCH] ci: use CEPH_VERSION from build.env Signed-off-by: Niels de Vos --- .travis.yml | 3 ++- build.env | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ca2df809f..f059dd94e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -32,9 +32,10 @@ before_install: - mkdir -p $GOPATH/bin before_script: + - export CV=$(source build.env ; echo ${CEPH_VERSION}) - curl https://download.ceph.com/keys/release.asc | sudo apt-key add - - sudo apt-add-repository - "deb https://download.ceph.com/debian-nautilus $(lsb_release -sc) main" + "deb https://download.ceph.com/debian-${CV} $(lsb_release -sc) main" # yamllint enable rule:line-length - sudo apt-get -qq update # only the arm64 fallback repo is unsigned and needs --allow-unauthenticated diff --git a/build.env b/build.env index 4a49c7688..085a6e584 100644 --- a/build.env +++ b/build.env @@ -11,6 +11,7 @@ # Ceph version to use BASE_IMAGE=ceph/ceph:v15 +CEPH_VERSION=nautilus # standard Golang options GOLANG_VERSION=1.13.9