[atkmm/kjellahl/testci] CI: Separate apt commands



commit 81459dc6472e1110fdb159bd10760deb79974a3b
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Thu Sep 9 19:10:34 2021 +0200

    CI: Separate apt commands

 .gitlab-ci.yml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 181e5d9..801e055 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -26,7 +26,11 @@ variables:
 .build_default:
   before_script:
     - export DEBIAN_FRONTEND=noninteractive
-    - apt update && apt -y upgrade && apt -y install $DEPENDENCIES
+    - if apt update; then
+    - if apt -y upgrade; then
+    - apt -y install $DEPENDENCIES
+    - fi
+    - fi
 
 # Clear the cache manually.
 clear_cache:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]