Skip to content

Commit 03c5523

Browse files
committed
Migrate to shared-pipeline-vars
1 parent ec2445f commit 03c5523

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

.buildkite/pipeline.yml

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
22
---
3-
# Nodes with values to reuse in the pipeline.
4-
common_params:
5-
env: &xcode_image
6-
IMAGE_ID: xcode-16.1
7-
plugins:
8-
- &ci_toolkit
9-
automattic/a8c-ci-toolkit#3.7.1: ~
10-
- &docker_plugin
11-
docker#v5.8.0:
12-
image: &ruby_version "public.ecr.aws/docker/library/ruby:3.2.2"
13-
propagate-environment: true
14-
environment:
15-
- "RUBYGEMS_API_KEY"
3+
4+
env:
5+
IMAGE_ID: $IMAGE_ID
166

177
steps:
188
#################
@@ -39,8 +29,7 @@ steps:
3929
4030
echo "--- :rspec: Run Rspec"
4131
bundle exec rspec --profile 10 --format progress
42-
env: *xcode_image
43-
plugins: [*ci_toolkit]
32+
plugins: [$CI_TOOLKIT]
4433
agents:
4534
queue: "mac"
4635
matrix:
@@ -60,7 +49,13 @@ steps:
6049
# commands written inline) to avoid leaking a key used in the process in clear in the
6150
# BUILDKITE_COMMAND environment variable.
6251
command: .buildkite/commands/gem-push.sh
63-
plugins: [*docker_plugin]
52+
plugins:
53+
- $DOCKER_PLUGIN:
54+
image: "$DOCKER_RUBY_IMAGE"
55+
propagate-environment: true
56+
environment:
57+
- "RUBYGEMS_API_KEY"
58+
6459
agents:
6560
queue: "default"
6661

.buildkite/shared-pipeline-vars

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
export IMAGE_ID="xcode-26.1.1"
4+
export CI_TOOLKIT="automattic/a8c-ci-toolkit#3.7.1"
5+
export DOCKER_PLUGIN="docker#v5.8.0"
6+
export RUBY_VERSION="3.2.2"
7+
export DOCKER_RUBY_IMAGE="public.ecr.aws/docker/library/ruby:$RUBY_VERSION"

0 commit comments

Comments
 (0)