Skip to content

Commit

Permalink
third approach
Browse files Browse the repository at this point in the history
  • Loading branch information
dliappis committed Apr 29, 2024
1 parent d327679 commit cb2dd2b
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .buildkite/packaging.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,14 @@ env:
PLATFORMS_ARM: "linux/arm64"

steps:
- key: beats_dra_concurrency_group
command: echo "Only one DRA job per commit is allowed to run."
concurrency_group: beats_dra
concurrency: 1

- group: Beats dashboards
key: dashboards
depends_on: beats_dra_concurrency_group
steps:
- label: Snapshot dashboards
if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
key: dashboards-snapshot
concurrency_group: beats-snapshot-dashboards
concurrency: 1
# TODO: container with go and make
agents:
provider: gcp
Expand All @@ -41,6 +37,8 @@ steps:
- label: Staging dashboards
if: build.branch =~ /^\d+\.\d+$$/
key: dashboards-staging
concurrency_group: beats-staging-dashboards
concurrency: 1
# TODO: container with go and make
agents:
provider: gcp
Expand All @@ -58,9 +56,10 @@ steps:
- group: Packaging snapshot
if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
key: packaging-snapshot
depends_on: beats_dra_concurrency_group
steps:
- label: "SNAPSHOT: {{matrix}}"
concurrency_group: "{{matrix}}-packaging-snapshot"
concurrency: 1
env:
PLATFORMS: "${PLATFORMS}"
SNAPSHOT: true
Expand Down Expand Up @@ -90,6 +89,8 @@ steps:
- x-pack/winlogbeat

- label: "SNAPSHOT: {{matrix}} docker Linux/arm64"
concurrency_group: "{{matrix}}-packaging-docker-snapshot"
concurrency: 1
env:
PLATFORMS: "${PLATFORMS_ARM}"
PACKAGES: "docker"
Expand Down Expand Up @@ -117,6 +118,8 @@ steps:

## Agentbeat needs more CPUs because it builds many other beats
- label: "SNAPSHOT: x-pack/agentbeat"
concurrency_group: "x-pack/agentbeat-packaging-snapshot"
concurrency: 1
env:
PLATFORMS: "${PLATFORMS}"
SNAPSHOT: true
Expand All @@ -131,11 +134,12 @@ steps:

- group: Packaging Staging
key: packaging-staging
depends_on: beats_dra_concurrency_group
## Only for release
if: build.branch =~ /^\d+\.\d+$$/
steps:
- label: "STAGING: {{matrix}}"
concurrency_group: "{{matrix}}-packaging-staging"
concurrency: 1
env:
PLATFORMS: "${PLATFORMS}"
SNAPSHOT: false
Expand Down Expand Up @@ -165,6 +169,8 @@ steps:
- x-pack/winlogbeat

- label: "STAGING: {{matrix}} docker Linux/arm64"
concurrency_group: "{{matrix}}-packaging-docker-staging"
concurrency: 1
env:
PLATFORMS: "${PLATFORMS_ARM}"
PACKAGES: "docker"
Expand Down Expand Up @@ -192,6 +198,8 @@ steps:

## Agentbeat needs more CPUs because it builds many other beats
- label: "STAGING: x-pack/agentbeat"
concurrency_group: "x-pack/agentbeat-packaging-staging"
concurrency: 1
env:
PLATFORMS: "${PLATFORMS}"
SNAPSHOT: false
Expand All @@ -206,9 +214,10 @@ steps:

- group: DRA publish
key: dra
depends_on: beats_dra_concurrency_group
steps:
- label: DRA Snapshot
concurrency_group: "dra-snapshot"
concurrency: 1
## Only for release branches and main
if: build.branch =~ /^\d+\.\d+$$/ || build.branch == 'main' || build.env('RUN_SNAPSHOT') == "true"
key: dra-snapshot
Expand All @@ -227,6 +236,8 @@ steps:
machineType: "${GCP_DEFAULT_MACHINE_TYPE}"

- label: DRA Staging
concurrency_group: "dra-staging"
concurrency: 1
## Only for release branches
if: build.branch =~ /^\d+\.\d+$$/
key: dra-staging
Expand Down

0 comments on commit cb2dd2b

Please sign in to comment.