ci: manual job to block pipeline start

This commit is contained in:
igor.udot
2026-03-12 09:51:47 +08:00
parent 45c2190fa7
commit f6e7ab370a
7 changed files with 32 additions and 7 deletions
+1
View File
@@ -9,6 +9,7 @@ include:
- ".gitlab/ci/danger.yml" - ".gitlab/ci/danger.yml"
- ".gitlab/ci/common.yml" - ".gitlab/ci/common.yml"
- ".gitlab/ci/rules.yml" - ".gitlab/ci/rules.yml"
- ".gitlab/ci/manual_gate.yml"
- ".gitlab/ci/upload_cache.yml" - ".gitlab/ci/upload_cache.yml"
- ".gitlab/ci/docs.yml" - ".gitlab/ci/docs.yml"
- ".gitlab/ci/static-code-analysis.yml" - ".gitlab/ci/static-code-analysis.yml"
+1
View File
@@ -2,6 +2,7 @@
# Default Variables # # Default Variables #
##################### #####################
stages: stages:
- manual_gate
- upload_cache - upload_cache
- pre_check - pre_check
- build - build
+4 -2
View File
@@ -7,8 +7,10 @@
stage: deploy stage: deploy
tags: [ fast_run, shiny ] tags: [ fast_run, shiny ]
image: python:3.13-slim image: python:3.13-slim
dependencies: [] needs:
needs: [] - job: manual_gate
optional: true
dependencies: null
variables: variables:
PIP_CACHE_DIR: ".cache/pip" PIP_CACHE_DIR: ".cache/pip"
# Metrics - related env vars # Metrics - related env vars
+3 -1
View File
@@ -325,7 +325,9 @@ build_docker:
- .before_script:minimal - .before_script:minimal
- .rules:build:docker - .rules:build:docker
stage: host_test stage: host_test
needs: [] needs:
- job: manual_gate
optional: true
image: espressif/docker-builder:1 image: espressif/docker-builder:1
tags: [shiny, dind] tags: [shiny, dind]
variables: variables:
+3 -1
View File
@@ -40,7 +40,9 @@ gen_integration_pipeline:
GIT_STRATEGY: "fetch" GIT_STRATEGY: "fetch"
SUBMODULES_TO_FETCH: "none" SUBMODULES_TO_FETCH: "none"
GIT_LFS_SKIP_SMUDGE: 1 GIT_LFS_SKIP_SMUDGE: 1
needs: [] needs:
- job: manual_gate
optional: true
artifacts: artifacts:
paths: paths:
- idf-integration-ci/child_pipeline/ - idf-integration-ci/child_pipeline/
+11
View File
@@ -0,0 +1,11 @@
manual_gate:
stage: manual_gate
image: $ESP_ENV_IMAGE
tags: [fast_run, shiny]
allow_failure: false
rules:
- if: '($CI_COMMIT_REF_NAME == "master" || $CI_COMMIT_BRANCH =~ /^release\/v/) && $CI_PIPELINE_SOURCE == "push"'
when: manual
- when: never
script:
- echo "Manual approval received for master pipeline."
+9 -3
View File
@@ -94,7 +94,9 @@ pytest_build_system_win:
- .test_build_system_template_win - .test_build_system_template_win
- .rules:labels:windows_pytest_build_system - .rules:labels:windows_pytest_build_system
parallel: 6 parallel: 6
needs: [] needs:
- job: manual_gate
optional: true
tags: [windows-build, brew] tags: [windows-build, brew]
artifacts: artifacts:
paths: paths:
@@ -109,7 +111,9 @@ pytest_build_system_win_minimal_cmake:
extends: extends:
- .test_build_system_template_win - .test_build_system_template_win
- .rules:labels:windows_pytest_build_system - .rules:labels:windows_pytest_build_system
needs: [] needs:
- job: manual_gate
optional: true
tags: [windows-build, brew] tags: [windows-build, brew]
artifacts: artifacts:
paths: paths:
@@ -142,7 +146,9 @@ pytest_buildv2_system_win:
- .test_build_system_template_win - .test_build_system_template_win
- .rules:labels:buildv2 - .rules:labels:buildv2
parallel: 2 parallel: 2
needs: [] needs:
- job: manual_gate
optional: true
tags: [windows-build, brew] tags: [windows-build, brew]
artifacts: artifacts:
paths: paths: