Merge branch 'gitlab-ci_timeout' into 'master'

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

See merge request KartKrew/Kart-Public!363
This commit is contained in:
Alam Ed Arias 2024-12-02 20:27:23 +00:00
commit b505c5a016

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"