Skip to content

Commit 36ecadd

Browse files
committedMar 13, 2025
fix(docs_ci): make post links only run after deploy docs preview
1 parent 0dcb997 commit 36ecadd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
 

‎.gitlab-ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ stages:
44
- target_test
55
- build_docs
66
- deploy
7+
- post_deploy
78

89
workflow:
910
rules:

‎.gitlab/ci/deploy.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,13 @@ deploy_docs_production:
8989
DOCS_DEPLOY_URL_BASE: "$DOCS_PROD_URL_BASE"
9090

9191
post_links:
92-
stage: deploy
92+
stage: post_deploy
93+
extends:
94+
- .rules:deploy:docs_preview
9395
tags: [deploy_docs]
9496
image: $ESP_DOCS_ENV_IMAGE
9597
needs:
9698
- deploy_docs_preview
97-
rules:
98-
# Run for all changes to a merge request's source branch
99-
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
10099
script:
101100
- ls -al logs
102101
- python3 ${CI_PROJECT_DIR}/tools/ci/post-mr-note.py $GITLAB_MR_NOTE_TOKEN $CI_PROJECT_PATH $CI_MERGE_REQUEST_IID

0 commit comments

Comments
 (0)
Please sign in to comment.