aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-03 20:24:45 +0000
committerLibravatar GitHub <noreply@github.com>2024-02-03 20:24:45 +0000
commit180bdee34774ed56c3a1822eb69d51e4cd9e5eaf (patch)
tree24808a5f0085478b69ba63a25b2b1008092e8eab /.gitlab-ci.yml
parentgeeqie.profile: allow Lua interpreter (#6183) (diff)
downloadfirejail-180bdee34774ed56c3a1822eb69d51e4cd9e5eaf.tar.gz
firejail-180bdee34774ed56c3a1822eb69d51e4cd9e5eaf.tar.zst
firejail-180bdee34774ed56c3a1822eb69d51e4cd9e5eaf.zip
ci: add timeout limits (#6178)
So that they fail early instead of letting them run indefinitely when there are problems with the CI infrastructure. Use 5 minutes for the jobs that usually complete in under a minute (check-profiles and codespell) and 10 minutes for the rest (most jobs usually take 1-3 minutes).
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cb88c0263..08b006f74 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,6 +8,7 @@
8 8
9build_ubuntu_package: 9build_ubuntu_package:
10 image: ubuntu:rolling 10 image: ubuntu:rolling
11 timeout: 10 minutes
11 variables: 12 variables:
12 DEBIAN_FRONTEND: noninteractive 13 DEBIAN_FRONTEND: noninteractive
13 script: 14 script:
@@ -24,6 +25,7 @@ build_ubuntu_package:
24 25
25build_debian_package: 26build_debian_package:
26 image: debian:buster 27 image: debian:buster
28 timeout: 10 minutes
27 variables: 29 variables:
28 DEBIAN_FRONTEND: noninteractive 30 DEBIAN_FRONTEND: noninteractive
29 script: 31 script:
@@ -40,6 +42,7 @@ build_debian_package:
40 42
41build_redhat_package: 43build_redhat_package:
42 image: almalinux:latest 44 image: almalinux:latest
45 timeout: 10 minutes
43 script: 46 script:
44 - dnf update -y 47 - dnf update -y
45 - dnf install -y rpm-build gcc make 48 - dnf install -y rpm-build gcc make
@@ -51,6 +54,7 @@ build_redhat_package:
51 54
52build_fedora_package: 55build_fedora_package:
53 image: fedora:latest 56 image: fedora:latest
57 timeout: 10 minutes
54 script: 58 script:
55 - dnf update -y 59 - dnf update -y
56 - dnf install -y rpm-build gcc make 60 - dnf install -y rpm-build gcc make
@@ -62,6 +66,7 @@ build_fedora_package:
62 66
63build_src_package: 67build_src_package:
64 image: alpine:latest 68 image: alpine:latest
69 timeout: 10 minutes
65 script: 70 script:
66 - apk update 71 - apk update
67 - apk upgrade 72 - apk upgrade
@@ -74,6 +79,7 @@ build_src_package:
74 79
75build_no_apparmor: 80build_no_apparmor:
76 image: ubuntu:latest 81 image: ubuntu:latest
82 timeout: 10 minutes
77 variables: 83 variables:
78 DEBIAN_FRONTEND: noninteractive 84 DEBIAN_FRONTEND: noninteractive
79 script: 85 script:
@@ -92,6 +98,7 @@ build_no_apparmor:
92 98
93debian_ci: 99debian_ci:
94 image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest 100 image: registry.salsa.debian.org/salsa-ci-team/ci-image-git-buildpackage:latest
101 timeout: 10 minutes
95 variables: 102 variables:
96 DEBFULLNAME: "$GITLAB_USER_NAME" 103 DEBFULLNAME: "$GITLAB_USER_NAME"
97 DEBEMAIL: "$GITLAB_USER_EMAIL" 104 DEBEMAIL: "$GITLAB_USER_EMAIL"