mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[CI] Prevent duplicate serverless image build (#186164)
## Summary Only adds build_project.yml if there's not already a deploy_project.yml added through labels ## Context Based on the labeling logic, if we had `ci:build-serverless-image` and `ci:project-deploy-*`, the steps for building the docker image would be added twice. See: https://elastic.slack.com/archives/C0D8P2XK5/p1718268306523329
This commit is contained in:
parent
f46dbfb7b8
commit
f6968f3091
1 changed files with 2 additions and 3 deletions
|
@ -145,15 +145,14 @@ const getPipeline = (filename: string, removeSteps = true) => {
|
|||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/fips.yml'));
|
||||
}
|
||||
|
||||
if (GITHUB_PR_LABELS.includes('ci:build-serverless-image')) {
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/build_project.yml'));
|
||||
}
|
||||
if (
|
||||
GITHUB_PR_LABELS.includes('ci:project-deploy-elasticsearch') ||
|
||||
GITHUB_PR_LABELS.includes('ci:project-deploy-observability') ||
|
||||
GITHUB_PR_LABELS.includes('ci:project-deploy-security')
|
||||
) {
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/deploy_project.yml'));
|
||||
} else if (GITHUB_PR_LABELS.includes('ci:build-serverless-image')) {
|
||||
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/build_project.yml'));
|
||||
}
|
||||
|
||||
if (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue