-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into feature/logstash
- Loading branch information
Showing
146 changed files
with
2,352 additions
and
6,167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
steps: | ||
- group: build | ||
steps: | ||
|
||
- label: ":docker: ci image" | ||
command: make -C .ci ci-build-image | ||
agents: | ||
provider: "gcp" | ||
image: "family/elastic-buildkite-agent-ubuntu-2004-lts" | ||
machineType: "n1-standard-16" | ||
|
||
- wait | ||
|
||
# multiarch dockerx build for !PR branch | ||
- label: ":docker: multiarch operator image" | ||
key: "operator-image-build" | ||
commands: | ||
- .buildkite/scripts/build/setenv.sh | ||
- make -C .ci TARGET="generate-crds-v1 publish-operator-multiarch-image" ci | ||
# save image for e2e-tests | ||
- buildkite-agent meta-data set operator-image $$(make print-operator-image) | ||
agents: | ||
provider: "gcp" | ||
image: "family/elastic-buildkite-agent-ubuntu-2004-lts" | ||
machineType: "n1-standard-16" | ||
artifact_paths: | ||
- config/*.yaml | ||
|
||
- label: ":docker: e2e-tests image" | ||
key: "e2e-tests-image-build" | ||
commands: | ||
- .buildkite/scripts/build/setenv.sh | ||
- make -C .ci TARGET="publish-e2e-multiarch-image" ci | ||
# save image for e2e-tests | ||
- buildkite-agent meta-data set e2e-image $$(make print-e2e-image) | ||
agents: | ||
provider: "gcp" | ||
image: "family/elastic-buildkite-agent-ubuntu-2004-lts" | ||
machineType: "n1-standard-16" | ||
|
||
# dev-license build for main nightly builds | ||
- label: ":docker: dev-license operator image" | ||
if: | | ||
( build.branch == "main" && build.source == "schedule" ) | ||
|| build.message =~ /^buildkite test .*dev-build.*/ | ||
key: "dev-operator-image-build" | ||
env: | ||
BUILD_LICENSE_PUBKEY: "dev" | ||
commands: | ||
- .buildkite/scripts/build/setenv.sh | ||
- make -C .ci TARGET="publish-operator-multiarch-image" ci | ||
agents: | ||
provider: "gcp" | ||
image: "family/elastic-buildkite-agent-ubuntu-2004-lts" | ||
machineType: "n1-standard-16" | ||
|
||
# fips build for tag builds | ||
- label: ":docker: fips operator image" | ||
if: | | ||
build.tag != null | ||
|| build.message =~ /^buildkite test .*release.*/ | ||
env: | ||
ENABLE_FIPS: "true" | ||
commands: | ||
- .buildkite/scripts/build/setenv.sh | ||
- make -C .ci TARGET="publish-operator-multiarch-image" ci | ||
agents: | ||
provider: "gcp" | ||
image: "family/elastic-buildkite-agent-ubuntu-2004-lts" | ||
machineType: "n1-standard-16" | ||
|
||
- label: ":go: operatorhub tool" | ||
key: "build-operatorhub-tool" | ||
commands: | ||
- cd hack/operatorhub | ||
- make build | ||
- buildkite-agent artifact upload bin/operatorhub | ||
|
||
- label: ":go: helm releaser tool" | ||
key: "build-helm-releaser-tool" | ||
commands: | ||
- cd hack/helm/release | ||
- make build | ||
- buildkite-agent artifact upload bin/releaser |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
|
||
env: | ||
DRY_RUN: true | ||
|
||
steps: | ||
- group: helm-release | ||
steps: | ||
|
||
- label: "operator dev helm chart" | ||
if: | | ||
( build.branch == "main" && build.source != "schedule" ) | ||
|| build.tag != null | ||
|| build.message =~ /^buildkite test .*release.*/ | ||
|| build.message == "release eck-operator helm charts" | ||
depends_on: | ||
- "build-helm-releaser-tool" | ||
key: "eck-operator-dev-helm" | ||
commands: | ||
- buildkite-agent artifact download "bin/releaser" /usr/local/ | ||
- chmod u+x /usr/local/bin/releaser | ||
- releaser --env=dev --charts-dir=deploy/eck-operator --dry-run=\$DRY_RUN | ||
|
||
- label: "eck-resources dev helm charts" | ||
if: | | ||
( build.branch == "main" && build.source != "schedule" ) | ||
|| build.tag != null | ||
|| build.message =~ /^buildkite test .*release.*/ | ||
|| build.message == "release eck-resources helm charts" | ||
depends_on: | ||
- "build-helm-releaser-tool" | ||
key: "eck-resources-dev-helm" | ||
commands: | ||
- buildkite-agent artifact download "bin/releaser" /usr/local/ | ||
- chmod u+x /usr/local/bin/releaser | ||
- releaser --env=dev --excludes=eck-operator --dry-run=\$DRY_RUN | ||
|
||
- label: "operator prod helm chart" | ||
if: build.message == "release eck-operator helm charts" | ||
depends_on: | ||
- "build-helm-releaser-tool" | ||
- "eck-operator-dev-helm" | ||
commands: | ||
- buildkite-agent artifact download "bin/releaser" /usr/local/ | ||
- chmod u+x /usr/local/bin/releaser | ||
- releaser --env=prod --charts-dir=deploy/eck-operator --dry-run=\$DRY_RUN | ||
|
||
- label: "eck-resources prod helm charts" | ||
if: build.message == "release eck-resources helm charts" | ||
depends_on: | ||
- "build-helm-releaser-tool" | ||
- "eck-resources-dev-helm" | ||
commands: | ||
- buildkite-agent artifact download "bin/releaser" /usr/local/ | ||
- chmod u+x /usr/local/bin/releaser | ||
- releaser --env=prod --excludes=eck-operator --dry-run=\$DRY_RUN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
steps: | ||
- group: release | ||
steps: | ||
|
||
- label: "k8s manifests" | ||
if: | | ||
( build.branch == "main" && build.source != "schedule" ) | ||
|| build.tag != null | ||
|| build.message =~ /^buildkite test .*release.*/ | ||
depends_on: | ||
- "operator-image-build" | ||
commands: | ||
- buildkite-agent artifact download 'config/*.yaml' config/ | ||
- .buildkite/scripts/build/setenv.sh | ||
- .buildkite/scripts/release/k8s-manifests.sh | ||
|
||
# dry run helm charts release | ||
- label: ":buildkite:" | ||
if: build.message =~ /^buildkite test .*release.*/ | ||
command: buildkite-agent pipeline upload .buildkite/pipeline-release-helm.yml | ||
|
||
# live helm charts release | ||
- label: ":buildkite:" | ||
if: | | ||
build.message !~ /^buildkite test .*release.*/ | ||
&& ( | ||
( build.branch == "main" && build.source != "schedule" ) | ||
|| build.tag != null | ||
|| build.message =~ /^release eck/ | ||
) | ||
command: | | ||
sed "s|DRY_RUN: true|DRY_RUN: false|" .buildkite/pipeline-release-helm.yml | buildkite-agent pipeline upload | ||
- label: ":buildkite:" | ||
if: | | ||
build.message =~ /^buildkite test .*operatorhub.*/ | ||
|| build.message =~ /^release eck .*operatorhub.*/ | ||
command: buildkite-agent pipeline upload .buildkite/pipeline-release-operatorhub.yml |
Oops, something went wrong.