GitLab CI: timeout apt-get update command with 2 minutes

This commit is contained in:
Alam Ed Arias 2024-12-01 20:43:18 -05:00
parent c4dbf42ded
commit 389f25638d

View file

@ -61,7 +61,7 @@
- - |
# 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"