From 44c39d06b2a1fb29e185f271d0604d47b1ee420a Mon Sep 17 00:00:00 2001 From: Pekka Paalanen Date: Thu, 21 Nov 2019 15:03:03 +0200 Subject: [PATCH] gitlab-ci: image build should fail on failed commands Ensure that no command in the script fails silently. If any command fails, the image is likely broken. Signed-off-by: Pekka Paalanen --- .gitlab-ci/debian-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci/debian-install.sh b/.gitlab-ci/debian-install.sh index 80ba6e36..34f3b262 100644 --- a/.gitlab-ci/debian-install.sh +++ b/.gitlab-ci/debian-install.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -o xtrace +set -o xtrace -o errexit echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list apt-get update -- 2.34.1