Skip to content

Commit 2153447

Browse files
committed
release: shell runner CI approval gate
1 parent 149dda6 commit 2153447

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.gitlab-ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
stages:
22
- verify
33
- build
4+
- approve
45
- publish
56

67
verify_release_projection:
78
stage: verify
8-
image: node:24-alpine
99
script:
1010
- node --version
11-
- npm ci
1211
- npm run verify
1312

1413
generate_wiki_projection:
1514
stage: build
16-
image: python:3.12-alpine
1715
script:
1816
- python3 tools/handbook_to_wiki.py --root . --out .build/wiki
1917
- test -f .build/wiki/gitlab/home.md
@@ -27,16 +25,23 @@ generate_wiki_projection:
2725
- .build/wiki/
2826
expire_in: 7 days
2927

28+
approve_public_projection:
29+
stage: approve
30+
rules:
31+
- if: '$CI_COMMIT_BRANCH == "release" && $CI_COMMIT_REF_PROTECTED == "true"'
32+
when: manual
33+
script:
34+
- echo "Manual approval gate before publishing public wiki projections."
35+
3036
publish_wiki_projection:
3137
stage: publish
32-
image: alpine:3.20
3338
needs:
3439
- job: generate_wiki_projection
3540
artifacts: true
41+
- job: approve_public_projection
3642
rules:
3743
- if: '$CI_COMMIT_BRANCH == "release" && $CI_COMMIT_REF_PROTECTED == "true"'
3844
before_script:
39-
- apk add --no-cache git curl bash python3
4045
- git config --global user.name "codex-hooks GitLab CI"
4146
- git config --global user.email "ci@codex-hooks.local"
4247
script:

0 commit comments

Comments
 (0)