Skip to content

Commit

Permalink
Merge pull request #3018 from buildkite/queue_names_env_vars
Browse files Browse the repository at this point in the history
Migrate Agent Pipeline to Agent Cluster
  • Loading branch information
matthewborden authored Sep 26, 2024
2 parents 1f69f1b + 722e9cf commit d978f55
Showing 1 changed file with 34 additions and 7 deletions.
41 changes: 34 additions & 7 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
env:
DRY_RUN: false # set to true to disable publishing releases
AGENT_RUNNERS_LINUX_QUEUE: "${AGENT_RUNNERS_LINUX_QUEUE:-agent-runners-linux-amd64}"
AGENT_RUNNERS_LINUX_ARM64_QUEUE: "${AGENT_RUNNERS_LINUX_ARM64_QUEUE:-agent-runners-linux-arm64}"
AGENT_RUNNERS_WINDOWS_QUEUE: "${AGENT_RUNNERS_WINDOWS_QUEUE:-agent-runners-windows-amd64}"
AGENT_BUILDERS_QUEUE: "${AGENT_BUILDERS_QUEUE:-elastic-builders}"
AGENT_BUILDERS_ARM64_QUEUE: "${AGENT_BUILDERS_QUEUE:-elastic-builders}"

agents:
queue: agent-runners-linux-amd64
queue: "$AGENT_RUNNERS_LINUX_QUEUE"

steps:
- name: ":go::robot_face: Check Code Committed"
Expand Down Expand Up @@ -33,7 +39,7 @@ steps:
command: ".buildkite/steps/tests.sh"
artifact_paths: junit-*.xml
agents:
queue: agent-runners-linux-arm64
queue: $AGENT_RUNNERS_LINUX_ARM64_QUEUE
plugins:
- docker-compose#v4.14.0:
config: .buildkite/docker-compose.yml
Expand All @@ -50,7 +56,7 @@ steps:
command: ".buildkite/steps/tests.sh -race"
artifact_paths: junit-*.xml
agents:
queue: agent-runners-linux-arm64
queue: $AGENT_RUNNERS_LINUX_ARM64_QUEUE
plugins:
- docker-compose#v4.14.0:
config: .buildkite/docker-compose.yml
Expand All @@ -67,7 +73,7 @@ steps:
command: "bash .buildkite\\steps\\tests.sh"
artifact_paths: junit-*.xml
agents:
queue: agent-runners-windows-amd64
queue: $AGENT_RUNNERS_WINDOWS_QUEUE
plugins:
- test-collector#v1.2.0:
files: "junit-*.xml"
Expand Down Expand Up @@ -167,8 +173,15 @@ steps:
steps:
- name: ":docker: {{matrix}} image build"
key: build-docker
plugins:
- aws-assume-role-with-web-identity#v1.0.0:
role_arn: "arn:aws:iam::${BUILD_AWS_ACCOUNT_ID}:role/${BUILD_AWS_ROLE_NAME}"
- ecr#v2.9.0:
login: true
account_ids: "${BUILD_AWS_ACCOUNT_ID}"
region: "us-east-1"
agents:
queue: elastic-builders
queue: $AGENT_BUILDERS_QUEUE
depends_on:
- build-binary
- set-metadata
Expand All @@ -187,10 +200,17 @@ steps:
- name: ":docker: {{matrix.variant}} amd64 image test"
key: test-docker-amd64
agents:
queue: elastic-builders
queue: $AGENT_BUILDERS_QUEUE
depends_on:
- build-docker
command: .buildkite/steps/test-docker-image.sh {{matrix.variant}}
plugins:
- aws-assume-role-with-web-identity#v1.0.0:
role_arn: "arn:aws:iam::${BUILD_AWS_ACCOUNT_ID}:role/${BUILD_AWS_ROLE_NAME}"
- ecr#v2.9.0:
login: true
account_ids: "${BUILD_AWS_ACCOUNT_ID}"
region: "us-east-1"
matrix:
setup:
variant:
Expand All @@ -202,9 +222,16 @@ steps:
- sidecar

- name: ":docker: {{matrix.variant}} arm64 image test"
plugins:
- aws-assume-role-with-web-identity#v1.0.0:
role_arn: "arn:aws:iam::${BUILD_AWS_ACCOUNT_ID}:role/${BUILD_AWS_ROLE_NAME}"
- ecr#v2.9.0:
login: true
account_ids: "${BUILD_AWS_ACCOUNT_ID}"
region: "us-east-1"
key: test-docker-arm64
agents:
queue: elastic-builders-arm64
queue: $AGENT_BUILDERS_ARM64_QUEUE
depends_on:
- build-docker
command: .buildkite/steps/test-docker-image.sh {{matrix.variant}}
Expand Down

0 comments on commit d978f55

Please sign in to comment.