|
1 | | -common-params: |
2 | | - &publish-android-artifacts-docker-container |
3 | | - docker#v3.8.0: |
4 | | - image: "public.ecr.aws/automattic/android-build-image:v1.2.0" |
5 | | - propagate-environment: true |
6 | | - environment: |
7 | | - # DO NOT MANUALLY SET THESE VALUES! |
8 | | - # They are passed from the Buildkite agent to the Docker container |
9 | | - - "AWS_ACCESS_KEY" |
10 | | - - "AWS_SECRET_KEY" |
| 1 | +# Run everything on the `android` queue |
| 2 | +agents: |
| 3 | + queue: android |
| 4 | + |
| 5 | +# Nodes with values to reuse in the pipeline. |
| 6 | +common_params: |
| 7 | + # Common plugin settings to use with the `plugins` key. |
| 8 | + - &common_plugins |
| 9 | + - automattic/bash-cache#2.6.0 |
11 | 10 |
|
12 | 11 | steps: |
13 | 12 | - label: "Publish :aztec" |
14 | 13 | key: "publish-aztec" |
15 | | - plugins: |
16 | | - - *publish-android-artifacts-docker-container |
17 | 14 | command: .buildkite/commands/publish-aztec.sh |
| 15 | + plugins: *common_plugins |
18 | 16 |
|
19 | 17 | - label: "Publish :glide-loader" |
20 | 18 | key: "publish-glide-loader" |
21 | 19 | depends_on: |
22 | 20 | - "publish-aztec" |
23 | | - plugins: |
24 | | - - *publish-android-artifacts-docker-container |
25 | 21 | command: .buildkite/commands/publish-glide-loader.sh |
| 22 | + plugins: *common_plugins |
26 | 23 |
|
27 | 24 | - label: "Publish :picasso-loader" |
28 | 25 | key: "publish-picasso-loader" |
29 | 26 | depends_on: |
30 | 27 | - "publish-aztec" |
31 | | - plugins: |
32 | | - - *publish-android-artifacts-docker-container |
33 | 28 | command: .buildkite/commands/publish-picasso-loader.sh |
| 29 | + plugins: *common_plugins |
34 | 30 |
|
35 | 31 | - label: "Publish :wordpress-shortcodes" |
36 | 32 | key: "publish-wordpress-shortcodes" |
37 | 33 | depends_on: |
38 | 34 | - "publish-aztec" |
39 | | - plugins: |
40 | | - - *publish-android-artifacts-docker-container |
41 | 35 | command: .buildkite/commands/publish-wordpress-shortcodes.sh |
| 36 | + plugins: *common_plugins |
42 | 37 |
|
43 | 38 | - label: "Publish :wordpress-comments" |
44 | 39 | key: "publish-wordpress-comments" |
45 | 40 | depends_on: |
46 | 41 | - "publish-aztec" |
47 | | - plugins: |
48 | | - - *publish-android-artifacts-docker-container |
49 | 42 | command: .buildkite/commands/publish-wordpress-comments.sh |
| 43 | + plugins: *common_plugins |
50 | 44 |
|
51 | 45 | - label: "Publish :media-placeholders" |
52 | 46 | key: "publish-media-placeholders" |
53 | 47 | depends_on: |
54 | 48 | - "publish-aztec" |
55 | | - plugins: |
56 | | - - *publish-android-artifacts-docker-container |
57 | 49 | command: .buildkite/commands/publish-media-placeholders.sh |
| 50 | + plugins: *common_plugins |
0 commit comments