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