File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,15 +54,11 @@ notify_datadog_release:
5454 before_script :
5555 - apt-get update && apt-get install --no-install-recommends -y curl jq
5656 - >-
57- DD_STS_API_KEY=$(curl -sS
58- -H "Authorization: Bearer ${DD_STS_OIDC_TOKEN}"
59- "https://dd-sts.us1.ddbuild.io/sts/datadog/exchange?policy=dd-trace-py-gitlab")
60- - >-
61- DD_STS_APP_KEY=$(curl -sS
57+ DD_STS_RESPONSE=$(curl -sS
6258 -H "Authorization: Bearer ${DD_STS_OIDC_TOKEN}"
6359 "https://dd-sts.us1.ddbuild.io/sts/datadog/exchange?policy=dd-trace-py-gitlab-app-key")
64- - export DD_API_KEY=$(echo "$DD_STS_API_KEY " | jq -re '.api_key')
65- - export DD_APP_KEY=$(echo "$DD_STS_APP_KEY " | jq -re '.application_key')
60+ - export DD_API_KEY=$(echo "$DD_STS_RESPONSE " | jq -re '.api_key')
61+ - export DD_APP_KEY=$(echo "$DD_STS_RESPONSE " | jq -re '.application_key')
6662 script :
6763 - |
6864 echo "Tag: ${CI_COMMIT_TAG} -> Commit SHA: ${CI_COMMIT_SHA}"
You can’t perform that action at this time.
0 commit comments