Commit 4abb7dd 1 parent 40c16d3 commit 4abb7dd Copy full SHA for 4abb7dd
File tree 1 file changed +18
-18
lines changed
1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -2,26 +2,26 @@ stages:
2
2
- deploy
3
3
4
4
variables :
5
- INDEX_FILE : index.txt
5
+ DOWNSTREAM_BRANCH :
6
+ value : " master"
7
+ description : " Run a specific datadog-reliability-env branch downstream"
8
+ FORCE_TRIGGER :
9
+ value : " false"
10
+ description : " Set to true to override rules in the reliability-env pipeline (e.g. override 'only deploy master')"
6
11
7
12
.common : &common
8
13
tags : [ "runner:main", "size:large" ]
9
14
10
- copy_to_s3 :
11
- << : *common
15
+ deploy_to_reliability_env :
12
16
stage : deploy
13
- image : registry.gitlab.com/gitlab-org/cloud-deploy/aws-base:latest
14
- rules :
15
- - if : ' $CI_COMMIT_BRANCH == "master"'
16
- when : on_success
17
- - when : manual
18
- allow_failure : true
19
- script :
20
- - export ACCESS_KEY_ID=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-rb.secret_key_id --with-decryption --query "Parameter.Value" --out text)
21
- - export SECRET_ACCESS_KEY=$(aws ssm get-parameter --region us-east-1 --name ci.dd-trace-rb.secret_sec_key_id --with-decryption --query "Parameter.Value" --out text)
22
- - export AWS_ACCESS_KEY_ID=$ACCESS_KEY_ID
23
- - export AWS_SECRET_ACCESS_KEY=$SECRET_ACCESS_KEY
24
- - echo $CI_COMMIT_REF_NAME >> $INDEX_FILE
25
- - echo $CI_COMMIT_SHA >> $INDEX_FILE
26
- - echo $GITLAB_USER_NAME >> $INDEX_FILE
27
- - aws s3 cp $INDEX_FILE s3://datadog-reliability-env/ruby/$INDEX_FILE
17
+ when : on_success
18
+ trigger :
19
+ project : DataDog/datadog-reliability-env
20
+ branch : $DOWNSTREAM_BRANCH
21
+ variables :
22
+ UPSTREAM_BRANCH : $CI_COMMIT_REF_NAME
23
+ UPSTREAM_PROJECT_ID : $CI_PROJECT_ID
24
+ UPSTREAM_PROJECT_NAME : $CI_PROJECT_NAME
25
+ UPSTREAM_COMMIT_SHA : $CI_COMMIT_SHA
26
+ FORCE_TRIGGER : $FORCE_TRIGGER
27
+
You can’t perform that action at this time.
0 commit comments