1- name : Detection workflow
1+ # Main CI workflow for the Geti project
2+ #
3+ # This workflow is triggered on various events such as schedule, pull requests, and pushes to the main branch.
4+ # It prepares build metadata, runs tests, builds components, and publishes binaries if required.
5+ # It also generates a summary report of the daily build.
6+ #
7+ # Key Features:
8+ # - Prepares build variables and metadata
9+ # - Runs tests for libraries and components
10+ # - Builds and publishes Docker images and Helm charts
11+ # - Generates a daily build summary report
12+ #
13+ # Process Stages:
14+ # 1. Prepare build metadata
15+ # 2. Run library tests
16+ # 3. Run component tests
17+ # 4. Build and publish web UI
18+ # 5. Build and publish components
19+ # 6. Build platform distribution binaries
20+ # 7. Check status of all builds and generate daily build summary
21+ #
22+ # Inputs:
23+ # - publish_binaries: Enable publishing binaries (default: true)
24+ # - ref: The branch, tag, or SHA to checkout (default: current ref)
25+ #
26+
27+ name : Main CI
228
329on :
430 schedule :
@@ -203,7 +229,6 @@ jobs:
203229 build_version : ${{ needs.get-vars.outputs.build_version }}
204230 publish_binaries : ${{ fromJSON(needs.get-vars.outputs.publish_binaries) }} # fromJSON is required to cast string to boolean
205231 ref : ${{ needs.get-vars.outputs.checkout_ref }}
206-
207232 secrets :
208233 AWS_ROLE : ${{ secrets.AWS_ROLE }}
209234 AWS_REGION : ${{ secrets.AWS_REGION }}
@@ -212,13 +237,15 @@ jobs:
212237 success :
213238 name : Required status checks
214239 needs :
240+ - get-vars
215241 - component-workflow
216242 - web-ui-workflow
217243 - package-distribution-workflow
218244 runs-on : ubuntu-latest
219245 if : ${{ always() && !cancelled() }}
220246 env :
221247 CHECKS : ${{ join(needs.*.result, ' ') }}
248+ BUILD_VERSION : ${{ needs.get-vars.outputs.build_version }}
222249 steps :
223250 - name : Check
224251 run : |
@@ -229,3 +256,9 @@ jobs:
229256 exit 1
230257 fi
231258 done
259+ - name : Create Summary with build version
260+ if : ${{ fromJSON(needs.get-vars.outputs.publish_binaries) }}
261+ run : |
262+ echo "## Required status checks passed" >> $GITHUB_STEP_SUMMARY
263+ echo "All required status checks have passed successfully." >> $GITHUB_STEP_SUMMARY
264+ echo "Packages published with tag: $BUILD_VERSION" >> $GITHUB_STEP_SUMMARY
0 commit comments