obs: deploy serverless when targeting main only (#187741)

This commit is contained in:
Victor Martinez 2024-07-09 15:46:42 +02:00 committed by GitHub
parent 436ff94f2e
commit 1a6b1edf19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -160,9 +160,12 @@ EOF
is_pr_with_label "ci:project-deploy-elasticsearch" && deploy "elasticsearch"
if is_pr_with_label "ci:project-deploy-observability" ; then
create_github_issue_oblt_test_environments
echo "--- Deploy observability with Kibana CI"
deploy "observability"
# Only deploy observability if the PR is targeting main
if [[ "$BUILDKITE_PULL_REQUEST_BASE_BRANCH" == "main" ]]; then
create_github_issue_oblt_test_environments
echo "--- Deploy observability with Kibana CI"
deploy "observability"
fi
fi
is_pr_with_label "ci:project-deploy-security" && deploy "security"