Skip to content

Commit 15d998c

Browse files
author
Samuel Fialka
committed
ci: Production as protected environment
1 parent bc34abb commit 15d998c

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

.gitlab/ci/deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ push_to_github:
4545
- git remote remove github &>/dev/null || true
4646
- git remote add github [email protected]:espressif/esp-idf.git
4747
- tools/ci/push_to_github.sh
48+
environment:
49+
name: push_to_github_production
50+
deployment_tier: production
51+
url: "https://github.com/espressif/esp-idf"
4852

4953
deploy_update_SHA_in_esp-dockerfiles:
5054
extends:
@@ -59,3 +63,6 @@ deploy_update_SHA_in_esp-dockerfiles:
5963
- 'curl --header "PRIVATE-TOKEN: ${ESPCI_SCRIPTS_TOKEN}" -o create_MR_in_esp_dockerfile.sh $GITLAB_HTTP_SERVER/api/v4/projects/1260/repository/files/create_MR_in_esp_dockerfile%2Fcreate_MR_in_esp_dockerfile.sh/raw\?ref\=master'
6064
- chmod +x create_MR_in_esp_dockerfile.sh
6165
- ./create_MR_in_esp_dockerfile.sh
66+
environment:
67+
name: eploy_update_SHA_in_esp-dockerfiles_production
68+
deployment_tier: production

.gitlab/ci/docs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ deploy_docs_preview:
179179
DOCS_DEPLOY_SERVER_USER: "$DOCS_SERVER_USER"
180180
DOCS_DEPLOY_PATH: "$DOCS_PATH"
181181
DOCS_DEPLOY_URL_BASE: "https://$DOCS_PREVIEW_SERVER_URL/docs/esp-idf"
182+
environment:
183+
name: deploy_docs_preview
184+
deployment_tier: staging
185+
url: "https://$DOCS_PREVIEW_SERVER_URL/docs/esp-idf"
182186

183187
# stage: post_deploy
184188
deploy_docs_production:
@@ -200,6 +204,10 @@ deploy_docs_production:
200204
DOCS_DEPLOY_PATH: "$DOCS_PROD_PATH"
201205
DOCS_DEPLOY_URL_BASE: "https://docs.espressif.com/projects/esp-idf"
202206
DEPLOY_STABLE: 1
207+
environment:
208+
name: deploy_docs_production
209+
deployment_tier: production
210+
url: "https://docs.espressif.com/projects/esp-idf"
203211

204212
check_doc_links:
205213
extends:

.gitlab/ci/post_deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ sync_support_status:
2727
before_script: []
2828
script:
2929
- 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"
30+
environment:
31+
name: sync_support_status_production
32+
deployment_tier: production

0 commit comments

Comments
 (0)