File tree 3 files changed +24
-17
lines changed
3 files changed +24
-17
lines changed Original file line number Diff line number Diff line change 1
1
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
2
2
---
3
- # Nodes with values to reuse in the pipeline.
4
- common_params :
5
- env : &xcode_image
6
- IMAGE_ID : xcode-15.2
7
- plugins :
8
- - &ci_toolkit
9
- automattic/a8c-ci-toolkit#2.18.2: ~
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"
16
3
17
4
steps :
18
5
# ################
@@ -39,14 +26,16 @@ steps:
39
26
40
27
echo "--- :rspec: Run Rspec"
41
28
bundle exec rspec --profile 10 --format progress
42
- env : *xcode_image
43
- plugins : [*ci_toolkit]
29
+ env :
30
+ IMAGE_ID : $IMAGE_ID
31
+ plugins :
32
+ - $CI_TOOLKIT_PLUGIN
44
33
agents :
45
34
queue : " mac"
46
35
matrix :
47
36
setup :
48
37
ruby :
49
- - 3.2.2
38
+ - $RUBY_VERSION
50
39
51
40
# ################
52
41
# Push to RubyGems
@@ -60,6 +49,11 @@ steps:
60
49
# commands written inline) to avoid leaking a key used in the process in clear in the
61
50
# BUILDKITE_COMMAND environment variable.
62
51
command : .buildkite/commands/gem-push.sh
63
- plugins : [*docker_plugin]
52
+ plugins :
53
+ - docker#v5.8.0:
54
+ image : " public.ecr.aws/docker/library/ruby:$RUBY_VERSION"
55
+ propagate-environment : true
56
+ environment :
57
+ - " RUBYGEMS_API_KEY"
64
58
agents :
65
59
queue : " default"
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used
4
+ # to set up some variables that will be interpolated in the `.yml` pipeline before uploading it.
5
+
6
+ CI_TOOLKIT_PLUGIN_VERSION=" 2.8.1"
7
+ RUBY_VERSION=$( cat .ruby-version)
8
+ XCODE_VERSION=$( sed ' s/^~> *//' .xcode-version)
9
+
10
+ export CI_TOOLKIT_PLUGIN=" automattic/a8c-ci-toolkit#$CI_TOOLKIT_PLUGIN_VERSION "
11
+ export IMAGE_ID=" xcode-$XCODE_VERSION "
12
+ export RUBY_VERSION
Original file line number Diff line number Diff line change
1
+ 15.2
You can’t perform that action at this time.
0 commit comments