@@ -970,16 +970,34 @@ notify:publish-release-failure:
970
970
- ' MESSAGE_TEXT=":status_alert: $CI_PROJECT_NAME $CI_COMMIT_TAG publish pipeline <$BUILD_URL|$COMMIT_MESSAGE> failed."'
971
971
- postmessage "#mobile-sdk-ops" "$MESSAGE_TEXT"
972
972
973
+ notify:prepare-github-token :
974
+ tags : [ "arch:amd64" ]
975
+ only :
976
+ - tags
977
+ image : $CI_IMAGE_DOCKER
978
+ stage : notify
979
+ when : on_success
980
+ script :
981
+ - aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.gh_app_private_key --with-decryption --query "Parameter.Value" --out text >> ./gh_private_key.pem
982
+ - export GITHUB_APP_CLIENT_ID=$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.gh_app_client_id --with-decryption --query "Parameter.Value" --out text)
983
+ - export GITHUB_APP_INSTALLATION_ID=$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.gh_app_installation_id --with-decryption --query "Parameter.Value" --out text)
984
+ - echo "GITHUB_TOKEN=$(bash ./create_github_installation_token.sh)" >> github.env
985
+ artifacts :
986
+ reports :
987
+ dotenv : github.env
988
+ access : none
989
+
973
990
notify:dogfood-app :
974
991
tags : [ "arch:amd64" ]
975
992
only :
976
993
- tags
977
994
image : $CI_IMAGE_DOCKER
978
995
stage : notify
979
996
when : on_success
997
+ needs :
998
+ - notify:prepare-github-token
980
999
script :
981
1000
- pip3 install GitPython requests
982
- - aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.gh_token --with-decryption --query "Parameter.Value" --out text >> ./gh_token
983
1001
- python3 dogfood.py -v $CI_COMMIT_TAG -t app
984
1002
985
1003
notify:dogfood-demo :
@@ -989,9 +1007,10 @@ notify:dogfood-demo:
989
1007
image : $CI_IMAGE_DOCKER
990
1008
stage : notify
991
1009
when : on_success
1010
+ needs :
1011
+ - notify:prepare-github-token
992
1012
script :
993
1013
- pip3 install GitPython requests
994
- - aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.gh_token --with-decryption --query "Parameter.Value" --out text >> ./gh_token
995
1014
- python3 dogfood.py -v $CI_COMMIT_TAG -t demo
996
1015
997
1016
notify:dogfood-gradle-plugin :
@@ -1003,7 +1022,6 @@ notify:dogfood-gradle-plugin:
1003
1022
when : on_success
1004
1023
script :
1005
1024
- pip3 install GitPython requests
1006
- - aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.gh_token --with-decryption --query "Parameter.Value" --out text >> ./gh_token
1007
1025
- python3 dogfood.py -v $CI_COMMIT_TAG -t gradle-plugin
1008
1026
1009
1027
notify:merge-verification-metadata :
0 commit comments