Skip to content

Commit cc42c26

Browse files
authored
Merge pull request #116 from wordpress-mobile/use/android-ami-in-buildkite
Use Android AMI in Buildkite
2 parents a2975a4 + 8964ab2 commit cc42c26

File tree

1 file changed

+7
-16
lines changed

1 file changed

+7
-16
lines changed

.buildkite/pipeline.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
common-params:
2-
&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+
common_params:
2+
# Common plugin settings to use with the `plugins` key.
3+
- &common_plugins
4+
- automattic/bash-cache#2.11.0
115

126
steps:
137
- label: "Lint & Checkstyle"
148
key: "lint_and_checkstyle"
15-
plugins:
16-
- *docker-container
9+
plugins: *common_plugins
1710
command: |
1811
cp gradle.properties-example gradle.properties
1912
./gradlew lint checkstyle
@@ -23,8 +16,7 @@ steps:
2316

2417
- label: "Test"
2518
key: "test"
26-
plugins:
27-
- *docker-container
19+
plugins: *common_plugins
2820
command: |
2921
cp gradle.properties-example gradle.properties
3022
./gradlew test
@@ -33,8 +25,7 @@ steps:
3325
depends_on:
3426
- "lint_and_checkstyle"
3527
- "test"
36-
plugins:
37-
- *docker-container
28+
plugins: *common_plugins
3829
command: |
3930
cp gradle.properties-example gradle.properties
4031
./gradlew \

0 commit comments

Comments
 (0)