From d0423bd25671261fc2d2cc9e3f76d51efc6647c5 Mon Sep 17 00:00:00 2001 From: Alam Ed Aria Date: Mon, 2 Dec 2024 15:25:36 -0500 Subject: [PATCH] GitLab CI: timeout apt-get update command with 2 minutes --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e284ce6..60e6c623 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -65,7 +65,7 @@ default: - - | # apt_update echo -e "\e[0Ksection_start:`date +%s`:apt_update[collapsed=true]\r\e[0KUpdating APT listing" - - apt-get update + - timeout 2m apt-get update || timeout 2m apt-get update - | # apt_update echo -e "\e[0Ksection_end:`date +%s`:apt_update\r\e[0K"