Skip to content

Commit c71d74e

Browse files
committed
Merge branch 'feat/upload_status_to_s3' into 'master'
ci(all): upload support status when pushed go github See merge request espressif/esp-idf!37064
2 parents 3286651 + bc1965a commit c71d74e

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.gitlab/ci/post_deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,14 @@ generate_failed_jobs_report:
1111
- job_report.html
1212
script:
1313
- python tools/ci/dynamic_pipelines/scripts/generate_report.py --report-type job
14+
15+
sync_support_status:
16+
stage: post_deploy
17+
extends:
18+
- .rules:sync_support_status
19+
needs:
20+
- push_to_github
21+
image: $ESP_ENV_IMAGE
22+
tags: [ brew, github_sync ]
23+
script:
24+
- curl --fail --request POST --form token="$IDF_STATUS_TRIG_TOKEN" --form ref="$IDF_STATUS_BRANCH" --form "variables[UPLOAD_TO_S3]=true" "$IDF_STATUS_TRIG_URL"

.gitlab/ci/rules.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@
168168
.if-ref-master: &if-ref-master
169169
if: '$CI_COMMIT_REF_NAME == "master"'
170170

171+
.if-ref-master-no_label: &if-ref-master-no_label
172+
if: '$CI_COMMIT_REF_NAME == "master" && $BOT_TRIGGER_WITH_LABEL == null'
173+
171174
.if-tag-release: &if-tag-release
172175
if: '$CI_COMMIT_TAG =~ /^v\d+\.\d+(\.\d+)?($|-)/'
173176

@@ -219,6 +222,11 @@
219222
when: never
220223
- <<: *if-protected-no_label
221224

225+
# Not uploading on release branches
226+
.rules:sync_support_status:
227+
rules:
228+
- <<: *if-ref-master-no_label
229+
222230
.rules:protected-no_label-always:
223231
rules:
224232
- <<: *if-qa-test-tag

0 commit comments

Comments
 (0)