1
1
# Nodes with values to reuse in the pipeline.
2
2
common_params :
3
- plugins : &common_plugins
4
- - &bash_cache automattic/bash-cache#v1.3.2: ~
5
- env : &common_env
6
- IMAGE_ID : xcode-12.5.1
3
+ plugins :
4
+ - &docker_plugin
5
+ docker#v3.8.0:
6
+ image : &ruby_version "ruby:2.7.4"
7
+ - &docker_plugin_with_danger_token
8
+ docker#v3.8.0:
9
+ image : *ruby_version
10
+ propagate-environment : true
11
+ environment :
12
+ - " DANGER_GITHUB_API_TOKEN"
7
13
8
14
steps :
9
15
# ################
@@ -23,8 +29,10 @@ steps:
23
29
24
30
echo "--- :rspec: Run Rspec"
25
31
bundle exec rspec --profile 10 --format progress
26
- env : *common_env
27
- plugins : *common_plugins
32
+ env :
33
+ IMAGE_ID : xcode-12.5.1
34
+ plugins :
35
+ automattic/bash-cache#v1.3.2: ~
28
36
agents :
29
37
queue : " mac"
30
38
@@ -36,10 +44,7 @@ steps:
36
44
bundle install
37
45
echo "--- :rubocop: Run Rubocop"
38
46
bundle exec rubocop
39
- env : *common_env
40
- plugins :
41
- - docker#v3.8.0:
42
- image : " ruby:2.7.4"
47
+ plugins : [*docker_plugin]
43
48
agents :
44
49
queue : " default"
45
50
@@ -51,13 +56,7 @@ steps:
51
56
bundle install
52
57
echo "--- :rubocop: Run Danger"
53
58
bundle exec danger
54
- env : *common_env
55
- plugins :
56
- - docker#v3.8.0:
57
- image : " ruby:2.7.4"
58
- propagate-environment : true
59
- environment :
60
- - " DANGER_GITHUB_API_TOKEN"
59
+ plugins : [*docker_plugin_with_danger_token]
61
60
agents :
62
61
queue : " default"
63
62
71
70
# commands written inline) to avoid leaking a key used in the process in clear in the
72
71
# BUILDKITE_COMMAND environment variable.
73
72
command : .buildkite/gem-push.sh
74
- env : *common_env
75
- plugins : *common_plugins
73
+ plugins : [*docker_plugin]
76
74
agents :
77
- queue : " mac "
75
+ queue : " default "
0 commit comments