-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LLVM Apple & FPM pipelines migration (#330)
- Loading branch information
Showing
13 changed files
with
164 additions
and
25 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 |
---|---|---|
@@ -1,3 +1,27 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json | ||
|
||
env: | ||
SETUP_GVM_VERSION: "v0.5.1" | ||
IMAGE_UBUNTU_X86_64: "family/core-ubuntu-2204" | ||
DOCKER_REGISTRY: "docker.elastic.co" | ||
STAGING_IMAGE: "${DOCKER_REGISTRY}/observability-ci" | ||
MAKEFILE: "fpm" | ||
CHANGESET_FILE: ".buildkite/scripts/changeset/fpm" | ||
DOCKER_FILTER_REF: "docker.elastic.co/beats-dev" | ||
BUILDX: "0" | ||
|
||
steps: | ||
- label: "Example test" | ||
command: echo "Hello!" | ||
- label: ":linux: Build FPM / Ubuntu X86_64" | ||
key: "build-ubuntu-x86" | ||
if: build.env("BUILDKITE_PULL_REQUEST") != "false" || build.source == "ui" || build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+$$/ | ||
command: | ||
- ".buildkite/scripts/llvm-fpm/build.sh ${MAKEFILE} ${CHANGESET_FILE} ${DOCKER_FILTER_REF}" | ||
- ".buildkite/scripts/llvm-fpm/publish.sh ${MAKEFILE} ${CHANGESET_FILE}" | ||
notify: | ||
- github_commit_status: | ||
context: "Build FPM / Ubuntu X86_64" | ||
env: | ||
REPOSITORY: "${STAGING_IMAGE}" | ||
agents: | ||
provider: "gcp" | ||
image: "${IMAGE_UBUNTU_X86_64}" |
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
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 |
---|---|---|
@@ -1,3 +1,59 @@ | ||
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json | ||
|
||
env: | ||
SETUP_GVM_VERSION: "v0.5.1" | ||
IMAGE_UBUNTU_X86_64: "family/core-ubuntu-2204" | ||
IMAGE_UBUNTU_ARM_64: "core-ubuntu-2004-aarch64" | ||
DOCKER_REGISTRY: "docker.elastic.co" | ||
STAGING_IMAGE: "${DOCKER_REGISTRY}/observability-ci" | ||
MAKEFILE: "go/llvm-apple" | ||
CHANGESET_FILE: ".buildkite/scripts/changeset/llvm-apple" | ||
DOCKER_FILTER_REF: "*/*/golang-crossbuild:llvm-apple*" | ||
BUILDX: "0" | ||
steps: | ||
- label: "Example test" | ||
command: echo "Hello!" | ||
- label: ":linux: Build LLVM Apple / Ubuntu X86_64 - {{matrix.debianVersion}}" | ||
key: "build-ubuntu-x86" | ||
if: build.env("BUILDKITE_PULL_REQUEST") != "false" || build.source == "ui" || build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+$$/ | ||
command: | ||
- ".buildkite/scripts/llvm-fpm/build.sh ${MAKEFILE} ${CHANGESET_FILE} ${DOCKER_FILTER_REF}" | ||
- ".buildkite/scripts/llvm-fpm/publish.sh ${MAKEFILE} ${CHANGESET_FILE}" | ||
notify: | ||
- github_commit_status: | ||
context: "Build LLVM Apple / Ubuntu X86_64" | ||
env: | ||
TAG_EXTENSION: "-debian{{matrix.debianVersion}}-amd64" | ||
REPOSITORY: "${STAGING_IMAGE}" | ||
DEBIAN_VERSION: "{{matrix.debianVersion}}" | ||
agents: | ||
provider: "gcp" | ||
image: "${IMAGE_UBUNTU_X86_64}" | ||
matrix: | ||
setup: | ||
debianVersion: | ||
- "10" | ||
- "11" | ||
- "12" | ||
|
||
- label: ":linux: Build LLVM Apple / Ubuntu ARM - {{matrix.debianVersion}}" | ||
key: "build-ubuntu-arm" | ||
if: build.env("BUILDKITE_PULL_REQUEST") != "false" || build.source == "ui" || build.branch == "main" || build.branch =~ /^[0-9]+\.[0-9]+$$/ | ||
command: | ||
- ".buildkite/scripts/llvm-fpm/build.sh ${MAKEFILE} ${CHANGESET_FILE} ${DOCKER_FILTER_REF}" | ||
- ".buildkite/scripts/llvm-fpm/publish.sh ${MAKEFILE} ${CHANGESET_FILE}" | ||
notify: | ||
- github_commit_status: | ||
context: "Build LLVM Apple / Ubuntu ARM" | ||
env: | ||
TAG_EXTENSION: "-debian{{matrix.debianVersion}}-arm64" | ||
REPOSITORY: "${STAGING_IMAGE}" | ||
DEBIAN_VERSION: "{{matrix.debianVersion}}" | ||
agents: | ||
provider: "aws" | ||
imagePrefix: "${IMAGE_UBUNTU_ARM_64}" | ||
instanceType: "t4g.large" | ||
matrix: | ||
setup: | ||
debianVersion: | ||
- "10" | ||
- "11" | ||
- "12" |
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,4 @@ | ||
^\.buildkite/fpm-pipeline.yml$ | ||
^\.buildkite/scripts/llvm-fpm | ||
^\.buildkite/scripts/changeset/fpm | ||
^fpm/ |
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,4 @@ | ||
^\.buildkite/llvm-apple-pipeline.yml$ | ||
^\.buildkite/scripts/llvm-apple | ||
^\.buildkite/scripts/changeset/llvm-fpm | ||
^go/llvm-apple/ |
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,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source .buildkite/scripts/common.sh | ||
|
||
makefile=${1} | ||
patterns=${2} | ||
docker_filter_ref=${3} | ||
|
||
if ! are_files_changed "$patterns" ; then | ||
exit 0 | ||
fi | ||
|
||
add_bin_path | ||
with_go "${GOLANG_VERSION}" | ||
with_mage | ||
|
||
retry 3 make -C "${makefile}" build GS_BUCKET_PATH=ingest-buildkite-ci | ||
docker images --format "table {{.Repository}}:{{.Tag}}\t{{.Size}}" --filter=reference="${docker_filter_ref}" |
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,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source .buildkite/scripts/common.sh | ||
|
||
makefile=${1} | ||
patterns=${2} | ||
|
||
if ! are_files_changed "$patterns" ; then | ||
exit 0 | ||
fi | ||
|
||
add_bin_path | ||
retry 3 make -C ${makefile} push |
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 |
---|---|---|
|
@@ -30,5 +30,3 @@ fi | |
set_git_config | ||
tag_commit | ||
git_push_with_auth | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM debian:buster | ||
FROM debian:bullseye | ||
LABEL maintainer="Elastic Beats Team" | ||
|
||
RUN \ | ||
|