ci(gitlab): Initial GitLab setup #11576
Closed
+57
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of Change
This pull request introduces enhancements to the GitLab CI configuration, including the addition of workflow rules, default settings, and a sample job. The changes aim to streamline pipeline management, improve flexibility, and provide examples for usage.
Workflow configuration updates:
.gitlab-ci.yml
: Added workflow rules to control pipeline execution based on branch, tag, and pipeline source conditions. Introduced variables for merge request pipelines and scheduled runs, and included common and sample workflow files for modularity.Default settings for pipelines:
.gitlab/workflows/common.yml
: Defined default pipeline stages (pre_check
,build
,test
,result
) and variables (ESP_IDF_VERSION
,ESP_ARDUINO_VERSION
). Added retry logic for handling runner failures and job execution timeouts.Example job:
.gitlab/workflows/sample.yml
: Added ahello-world
job in thetest
stage that outputs a greeting message, demonstrating basic usage of GitLab CI.