mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
# Backport This will backport the following commits from `main` to `7.17`: - [[CI] Fix issues related to publish (#183393)](https://github.com/elastic/kibana/pull/183393) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport)
This commit is contained in:
parent
a8f15df7a7
commit
a138c418e8
2 changed files with 22 additions and 2 deletions
|
@ -65,3 +65,23 @@ vault_kv_set() {
|
|||
|
||||
vault kv put "$VAULT_KV_PREFIX/$kv_path" "${fields[@]}"
|
||||
}
|
||||
|
||||
function get_vault_role_id() {
|
||||
if [[ "$IS_LEGACY_VAULT_ADDR" == "true" ]]; then
|
||||
VAULT_ROLE_ID="$(retry 5 15 gcloud secrets versions access latest --secret=kibana-buildkite-vault-role-id)"
|
||||
else
|
||||
VAULT_ROLE_ID="$(vault_get kibana-buildkite-vault-credentials role-id)"
|
||||
fi
|
||||
|
||||
echo "$VAULT_ROLE_ID"
|
||||
}
|
||||
|
||||
function get_vault_secret_id() {
|
||||
if [[ "$IS_LEGACY_VAULT_ADDR" == "true" ]]; then
|
||||
VAULT_SECRET_ID="$(retry 5 15 gcloud secrets versions access latest --secret=kibana-buildkite-vault-secret-id)"
|
||||
else
|
||||
VAULT_SECRET_ID="$(vault_get kibana-buildkite-vault-credentials secret-id)"
|
||||
fi
|
||||
|
||||
echo "$VAULT_SECRET_ID"
|
||||
}
|
||||
|
|
|
@ -50,8 +50,8 @@ docker pull docker.elastic.co/infra/release-manager:latest
|
|||
|
||||
echo "--- Publish artifacts"
|
||||
if [[ "$BUILDKITE_BRANCH" == "$KIBANA_BASE_BRANCH" ]]; then
|
||||
export VAULT_ROLE_ID="$(retry 5 15 gcloud secrets versions access latest --secret=kibana-buildkite-vault-role-id)"
|
||||
export VAULT_SECRET_ID="$(retry 5 15 gcloud secrets versions access latest --secret=kibana-buildkite-vault-secret-id)"
|
||||
export VAULT_ROLE_ID="$(get_vault_role_id)"
|
||||
export VAULT_SECRET_ID="$(get_vault_secret_id)"
|
||||
export VAULT_ADDR="https://secrets.elastic.co:8200"
|
||||
docker run --rm \
|
||||
--name release-manager \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue