diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 7858eca..e772b6b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -60,7 +60,7 @@ test-plain-install: -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v $CI_PROJECT_DIR:/src -e CI_PROJECT_DIR=/src - -e CI_COMMIT_TAG=CI_COMMIT_TAG + -e CI_COMMIT_TAG=$CI_COMMIT_TAG jrei/systemd-ubuntu:20.04 - docker exec -t systemd-ubuntu /bin/bash /src/.gitlab-ci/test.sh only: diff --git a/.gitlab-ci/test.sh b/.gitlab-ci/test.sh index 2c3a89e..e2e3c75 100644 --- a/.gitlab-ci/test.sh +++ b/.gitlab-ci/test.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + VERSION=$(echo "${CI_COMMIT_TAG#*v}" | cut -d'-' -f1) PATCHLEVEL=$(echo "${CI_COMMIT_TAG}" | cut -d'-' -f2) apt-get -qq update