entrypoint: Accept BUILD_TAGS from execution environment

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
This commit is contained in:
Anoop C S 2022-06-29 15:43:53 +05:30 committed by mergify[bot]
parent 15d71fe192
commit 9897bd034d
1 changed files with 11 additions and 10 deletions

View File

@ -8,7 +8,7 @@ COVERAGE=yes
CPUPROFILE=no CPUPROFILE=no
MEMPROFILE=no MEMPROFILE=no
MICRO_OSD_PATH="/micro-osd.sh" MICRO_OSD_PATH="/micro-osd.sh"
BUILD_TAGS="" BUILD_TAGS=${BUILD_TAGS:-}
RESULTS_DIR=/results RESULTS_DIR=/results
CEPH_CONF=/tmp/ceph/ceph.conf CEPH_CONF=/tmp/ceph/ceph.conf
MIRROR_STATE=/dev/null MIRROR_STATE=/dev/null
@ -325,17 +325,18 @@ pause_if_needed() {
fi fi
} }
if [ -z "${BUILD_TAGS}" ]; then
if [ -n "${CEPH_VERSION}" ]; then
add_build_tag "${CEPH_VERSION}"
fi
if [ -n "${CEPH_VERSION}" ]; then if [ -n "${NO_PTRGUARD}" ]; then
add_build_tag "${CEPH_VERSION}" add_build_tag "no_ptrguard"
fi fi
if [ -n "${NO_PTRGUARD}" ]; then if [ -z "${NO_PREVIEW}" ]; then
add_build_tag "no_ptrguard" add_build_tag "ceph_preview"
fi fi
if [ -z "${NO_PREVIEW}" ]; then
add_build_tag "ceph_preview"
fi fi
if [ -n "${BUILD_TAGS}" ]; then if [ -n "${BUILD_TAGS}" ]; then