Skip to content

Commit

Permalink
Set timeout for image build jobs
Browse files Browse the repository at this point in the history
Added a 15-minute timeout to individual image build jobs and a 30-minute timeout to the composite build job in the CI workflow file. This ensures that builds do not run indefinitely, potentially saving resources and improving overall CI pipeline efficiency.
  • Loading branch information
meanmail committed Nov 7, 2024
1 parent 706735e commit 136d758
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
build_debian_image:
name: Build epicbox/debian image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -28,6 +29,7 @@ jobs:
build_clojure_image:
name: Build epicbox-clojure image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -43,6 +45,7 @@ jobs:
name: Build epicbox-gcc image
needs: build_debian_image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -57,6 +60,7 @@ jobs:
build_go_image:
name: Build epicbox-go image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -71,6 +75,7 @@ jobs:
build_haskell_image:
name: Build epicbox-haskell image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -85,6 +90,7 @@ jobs:
build_hyperskill_go_image:
name: Build epicbox-hyperskill/go image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -100,6 +106,7 @@ jobs:
name: Build epicbox-hyperskill/gcc image
needs: build_debian_image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -114,6 +121,7 @@ jobs:
build_hyperskill_gradle_image:
name: Build epicbox-hyperskill/gradle image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -128,6 +136,7 @@ jobs:
build_hyperskill_gradle_spring_image:
name: Build epicbox-hyperskill/gradle-spring image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -142,6 +151,7 @@ jobs:
build_hyperskill_java_image:
name: Build epicbox-hyperskill/java image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -156,6 +166,7 @@ jobs:
build_hyperskill_node_image:
name: Build epicbox-hyperskill/node image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -170,6 +181,7 @@ jobs:
build_hyperskill_node_javascript_image:
name: Build epicbox-hyperskill/node-javascript image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -184,6 +196,7 @@ jobs:
build_hyperskill_python_image:
name: Build epicbox-hyperskill/python image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -198,6 +211,7 @@ jobs:
build_java_image:
name: Build epicbox/java image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -212,6 +226,7 @@ jobs:
build_kotlin_image:
name: Build epicbox/kotlin image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -227,6 +242,7 @@ jobs:
name: Build epicbox/mono image
needs: build_debian_image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -241,6 +257,7 @@ jobs:
build_node_image:
name: Build epicbox/node image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -255,6 +272,7 @@ jobs:
build_php_image:
name: Build epicbox/php image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -269,6 +287,7 @@ jobs:
build_pmd_image:
name: Build epicbox/pmd image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -283,6 +302,7 @@ jobs:
build_python_310_image:
name: Build epicbox/python 3.10 image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -297,6 +317,7 @@ jobs:
build_python_311_image:
name: Build epicbox/python 3.11 image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -311,6 +332,7 @@ jobs:
build_ruby_image:
name: Build epicbox/ruby image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -325,6 +347,7 @@ jobs:
build_scala2_image:
name: Build epicbox/scala2 image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -339,6 +362,7 @@ jobs:
build_scala3_image:
name: Build epicbox/scala3 image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -353,6 +377,7 @@ jobs:
build_typescript_image:
name: Build epicbox/typescript image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -367,6 +392,7 @@ jobs:
build_hyperstyle_image:
name: Build epicbox/hyperstyle image
runs-on: [ self-hosted, small ]
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -409,6 +435,7 @@ jobs:
- build_typescript_image
- build_hyperstyle_image
runs-on: [ self-hosted, small ]
timeout-minutes: 30
steps:
- uses: hyperskill/[email protected]
with:
Expand Down

0 comments on commit 136d758

Please sign in to comment.