@@ -64,6 +64,10 @@ stages:
64
64
- export OSSRH_USERNAME=$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.signing.ossrh_username --with-decryption --query "Parameter.Value" --out text)
65
65
- export OSSRH_PASSWORD=$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.signing.ossrh_password --with-decryption --query "Parameter.Value" --out text)
66
66
- export GPG_PUBLIC_FINGERPRINT=$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.signing.gpg_public_key --with-decryption --query "Parameter.Value" --out text | gpg --import --import-options show-only | grep -E -o -e "[A-F0-9]{40}")
67
+ set-github-installation-token :
68
+ - 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)
69
+ - 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)
70
+ - export GITHUB_TOKEN=$(aws ssm get-parameter --region us-east-1 --name ci.dd-sdk-android.gh_app_private_key --with-decryption --query "Parameter.Value" --out text | bash ./create_github_installation_token.sh "$GITHUB_APP_CLIENT_ID" "$GITHUB_APP_INSTALLATION_ID")
67
71
68
72
# CI IMAGE
69
73
@@ -978,8 +982,8 @@ notify:dogfood-app:
978
982
stage : notify
979
983
when : on_success
980
984
script :
985
+ - !reference [ .snippets, set-github-installation-token ]
981
986
- 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
987
- python3 dogfood.py -v $CI_COMMIT_TAG -t app
984
988
985
989
notify:dogfood-demo :
@@ -990,8 +994,8 @@ notify:dogfood-demo:
990
994
stage : notify
991
995
when : on_success
992
996
script :
997
+ - !reference [ .snippets, set-github-installation-token ]
993
998
- 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
999
- python3 dogfood.py -v $CI_COMMIT_TAG -t demo
996
1000
997
1001
notify:dogfood-gradle-plugin :
@@ -1002,8 +1006,8 @@ notify:dogfood-gradle-plugin:
1002
1006
stage : notify
1003
1007
when : on_success
1004
1008
script :
1009
+ - !reference [ .snippets, set-github-installation-token ]
1005
1010
- 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
1011
- python3 dogfood.py -v $CI_COMMIT_TAG -t gradle-plugin
1008
1012
1009
1013
notify:merge-verification-metadata :
0 commit comments