forked from espressif/esp-hal-3rdparty
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
32 lines (30 loc) · 746 Bytes
/
.gitlab-ci.yml
File metadata and controls
32 lines (30 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
stages:
- sync
- trigger
sync_from_idf:
image: $CI_DOCKER_REGISTRY/esp-env-v5.1:1
stage: sync
tags:
- build
artifacts:
paths:
- force_push.yml
expire_in: 1 hour
variables:
IDF_URL: ${CI_IDF_URL}
ESP_HAL_3RDPARTY_URL: https://gitlab-ci-token:${CI_ESP_HAL_3RDPARTY_TOKEN}@${CI_SERVER_HOST}:${CI_SERVER_PORT}/${CI_PROJECT_PATH}.git
script:
- pip install git-filter-repo
- tools/extract_idf_components.sh
rules:
- if: $CI_PIPELINE_SOURCE == "push"
- if: $CI_PIPELINE_SOURCE == "schedule"
- if: $CI_PIPELINE_SOURCE == "web"
force_push:
stage: trigger
needs: ["sync_from_idf"]
trigger:
include:
- artifact: force_push.yml
job: sync_from_idf
strategy: depend