|
8 | 8 | IMAGE_UBUNTU_ARM_64: "core-ubuntu-2004-aarch64"
|
9 | 9 |
|
10 | 10 | steps:
|
11 |
| - - group: "Package and Publish" |
12 |
| - key: "package-publish" |
13 |
| - steps: |
14 |
| - - label: "Package Ubuntu-20 x86_64" |
15 |
| - key: "package-x86-64" |
16 |
| - command: ".buildkite/scripts/package.sh {{matrix.type}}" |
17 |
| - agents: |
18 |
| - provider: "gcp" |
19 |
| - image: "${IMAGE_UBUNTU_X86_64}" |
20 |
| - machineType: "c2-standard-16" |
21 |
| - matrix: |
22 |
| - setup: |
23 |
| - type: |
24 |
| - - "snapshot" |
25 |
| - - "staging" |
| 11 | + - label: "Package x86_64 snapshot" |
| 12 | + # skip building + packaging snapshot for pre-releases (flagged by a non-empty VERSION_QUALIFIER env var/BK param) |
| 13 | + # as prereleases are only intended to be used with staging; details in https://github.com/elastic/ingest-dev/issues/4855 |
| 14 | + if: "build.env('VERSION_QUALIFIER') == null" |
| 15 | + key: "package-x86-64-snapshot" |
| 16 | + command: ".buildkite/scripts/package.sh snapshot" |
| 17 | + agents: |
| 18 | + provider: "gcp" |
| 19 | + image: "${IMAGE_UBUNTU_X86_64}" |
| 20 | + machineType: "c2-standard-16" |
| 21 | + |
| 22 | + - label: "Package x86_64 staging" |
| 23 | + key: "package-x86-64-staging" |
| 24 | + command: ".buildkite/scripts/package.sh snapshot" |
| 25 | + agents: |
| 26 | + provider: "gcp" |
| 27 | + image: "${IMAGE_UBUNTU_X86_64}" |
| 28 | + machineType: "c2-standard-16" |
26 | 29 |
|
27 |
| - - label: "Package Ubuntu-20 aarch64" |
28 |
| - key: "package-arm" |
29 |
| - command: ".buildkite/scripts/package.sh {{matrix.type}}" |
30 |
| - agents: |
31 |
| - provider: "aws" |
32 |
| - imagePrefix: "${IMAGE_UBUNTU_ARM_64}" |
33 |
| - instanceType: "t4g.2xlarge" |
34 |
| - matrix: |
35 |
| - setup: |
36 |
| - type: |
37 |
| - - "snapshot" |
38 |
| - - "staging" |
| 30 | + - label: "Package aarch64 snapshot" |
| 31 | + if: "build.env('VERSION_QUALIFIER') == null" |
| 32 | + key: "package-arm-snapshot" |
| 33 | + command: ".buildkite/scripts/package.sh snapshot" |
| 34 | + agents: |
| 35 | + provider: "aws" |
| 36 | + imagePrefix: "${IMAGE_UBUNTU_ARM_64}" |
| 37 | + instanceType: "t4g.2xlarge" |
| 38 | + |
| 39 | + - label: "Package aarch64 staging" |
| 40 | + key: "package-arm-staging" |
| 41 | + command: ".buildkite/scripts/package.sh staging" |
| 42 | + agents: |
| 43 | + provider: "aws" |
| 44 | + imagePrefix: "${IMAGE_UBUNTU_ARM_64}" |
| 45 | + instanceType: "t4g.2xlarge" |
39 | 46 |
|
40 | 47 | - label: "DRA snapshot"
|
| 48 | + if: "${FILE_EXISTS_IN_REPO} && build.env('VERSION_QUALIFIER') == null" |
41 | 49 | key: "dra-snapshot"
|
42 | 50 | command: ".buildkite/scripts/dra_release.sh snapshot"
|
43 | 51 | agents:
|
44 | 52 | provider: "gcp"
|
45 | 53 | image: "${IMAGE_UBUNTU_X86_64}"
|
46 | 54 | machineType: "c2-standard-16"
|
47 |
| - if: ${FILE_EXISTS_IN_REPO} |
48 | 55 | depends_on:
|
49 |
| - - step: "package-publish" |
| 56 | + - step: "package-x86-64-snapshot" |
| 57 | + allow_failure: false |
| 58 | + - step: "package-arm-snapshot" |
50 | 59 | allow_failure: false
|
51 | 60 |
|
52 | 61 | - label: "DRA release staging"
|
| 62 | + # we don't usually build staging from the main branch, but we exceptionally allow it for prereleases |
| 63 | + # details in https://github.com/elastic/ingest-dev/issues/4855 |
| 64 | + if: "${FILE_EXISTS_IN_REPO} == true && (build.env('BUILDKITE_BRANCH') != 'main' || build.env('VERSION_QUALIFIER') != null)" |
53 | 65 | key: "dra-staging"
|
54 | 66 | command: ".buildkite/scripts/dra_release.sh staging"
|
55 | 67 | agents:
|
56 | 68 | provider: "gcp"
|
57 | 69 | image: "${IMAGE_UBUNTU_X86_64}"
|
58 | 70 | machineType: "c2-standard-16"
|
59 |
| - if: "${FILE_EXISTS_IN_REPO} == true && build.env('BUILDKITE_BRANCH') != 'main'" |
60 | 71 | depends_on:
|
61 |
| - - step: "dra-snapshot" |
| 72 | + - step: "package-x86-64-staging" |
| 73 | + allow_failure: false |
| 74 | + - step: "package-arm-staging" |
62 | 75 | allow_failure: false
|
0 commit comments