From 4dc82749c0a6a20a9f5533328840302cef888d55 Mon Sep 17 00:00:00 2001 From: wilmardo Date: Fri, 25 Jun 2021 09:18:17 +0200 Subject: [PATCH] fix: update test command Signed-off-by: wilmardo --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2a25c6f..641ccc4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,6 +16,7 @@ test: DOCKER_IMAGE_NAME: ${CI_REGISTRY_IMAGE} DOCKER_IMAGE_TAG: ${CI_COMMIT_SHA}-amd64 script: - - docker run ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} --help + # Mosquitto help exits with code 3 so catch that as an exit 0 (expected) + - docker run ${DOCKER_IMAGE_NAME}:${DOCKER_IMAGE_TAG} -h || if [ $? -eq 3 ]; then exit 0; fi; except: - tags