Merge branch 'gitlab-ci_timeout' into 'next'

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

See merge request STJr/SRB2!2553
This commit is contained in:
Alam Ed Arias 2024-12-02 01:51:11 +00:00
commit 9dd35ff543

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"