Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .buildkite/setup-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,14 @@ printf '%s' "$EC_API_KEY" | node -e '
const key = require("node:fs").readFileSync(0, "utf-8").trim()
process.stdout.write(JSON.stringify({
contexts: { ci: { cloud: {
url: "https://admin.qa.cld.elstc.co",
url: "https://public-api.qa.cld.elstc.co",
auth: { api_key: key },
} } },
current_context: "ci",
}) + "\n")
' > "$CI_CONFIG_FILE"

unset EC_API_KEY
export ELASTIC_CLOUD_ADMIN_API=true
export ELASTIC_CLI_CONFIG_FILE="$CI_CONFIG_FILE"

echo "Cloud config written to $CI_CONFIG_FILE (admin API mode enabled)"
echo "Cloud config written to $CI_CONFIG_FILE"
Loading