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

This commit is contained in:
Alam Ed Aria 2024-12-02 15:25:36 -05:00
parent 44b4a68528
commit d0423bd256

View file

@ -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"