Skip to content
Snippets Groups Projects
Commit 5986bbd3 authored by Volodymyr Pienskoi [EPAM / GCP]'s avatar Volodymyr Pienskoi [EPAM / GCP]
Browse files

Fix bootstrap

parent edec861f
No related branches found
No related tags found
No related merge requests found
Pipeline #153993 failed
...@@ -23,8 +23,8 @@ get_token_onprem() { ...@@ -23,8 +23,8 @@ get_token_onprem() {
} }
get_token_gcp() { get_token_gcp() {
BEARER_TOKEN=$(gcloud auth print-identity-token --audiences="${GOOGLE_AUDIENCES}") ID_TOKEN=$(gcloud auth print-identity-token --audiences="${GOOGLE_AUDIENCES}")
export BEARER_TOKEN export BEARER_TOKEN="Bearer ${ID_TOKEN}"
} }
check_entitlements_readiness() { check_entitlements_readiness() {
...@@ -55,7 +55,7 @@ create_legaltag() { ...@@ -55,7 +55,7 @@ create_legaltag() {
"countryOfOrigin":["US"], "countryOfOrigin":["US"],
"contractId":"No Contract Related", "contractId":"No Contract Related",
"expirationDate":"2099-01-01", "expirationDate":"2099-01-01",
"dataType":"Public Domain Data", "dataType":"Public Domain Data",
"originator":"OSDU", "originator":"OSDU",
"securityClassification":"Public", "securityClassification":"Public",
"exportClassification":"EAR99", "exportClassification":"EAR99",
...@@ -69,7 +69,7 @@ EOF ...@@ -69,7 +69,7 @@ EOF
--url "${LEGAL_HOST}/api/legal/v1/legaltags" \ --url "${LEGAL_HOST}/api/legal/v1/legaltags" \
--write-out "%{http_code}" --silent --output "output.txt" \ --write-out "%{http_code}" --silent --output "output.txt" \
--header "Content-Type: application/json" \ --header "Content-Type: application/json" \
--header "authorization: Bearer ${BEARER_TOKEN}" \ --header "authorization: ${BEARER_TOKEN}" \
--header "data-partition-id: ${DATA_PARTITION_ID}" \ --header "data-partition-id: ${DATA_PARTITION_ID}" \
--data @/opt/default_legal_tag.json) --data @/opt/default_legal_tag.json)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment