Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone the repo faster in Buildkite #6008

Merged
merged 4 commits into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 16 additions & 12 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
x-common-params:
&publish-android-artifacts-docker-container
docker#v3.8.0:
image: "public.ecr.aws/automattic/android-build-image:v1.3.0"
propagate-environment: true
environment:
# DO NOT MANUALLY SET THESE VALUES!
# They are passed from the Buildkite agent to the Docker container
- "AWS_ACCESS_KEY"
- "AWS_SECRET_KEY"
- &git-shallow-clone-plugin
automattic/git-shallow-clone#trunk
- &publish-android-artifacts-docker-container
docker#v3.8.0:
image: "public.ecr.aws/automattic/android-build-image:v1.3.0"
propagate-environment: true
environment:
# DO NOT MANUALLY SET THESE VALUES!
# They are passed from the Buildkite agent to the Docker container
- "AWS_ACCESS_KEY"
- "AWS_SECRET_KEY"

steps:
- block: "Request trigger Android bundle and builds"
Expand All @@ -16,6 +18,7 @@ steps:
- label: "Build JS Bundles"
key: "js-bundles"
plugins:
- *git-shallow-clone-plugin
- docker#v3.8.0:
image: "public.ecr.aws/automattic/gb-mobile-image:latest"
environment:
Expand Down Expand Up @@ -49,6 +52,7 @@ steps:
- label: "Build Android RN Aztec & Publish to S3"
key: "publish-react-native-aztec-android"
plugins:
- *git-shallow-clone-plugin
- *publish-android-artifacts-docker-container
command: |
.buildkite/publish-react-native-aztec-android-artifacts.sh
Expand All @@ -58,6 +62,7 @@ steps:
- "js-bundles"
- "publish-react-native-aztec-android"
plugins:
- *git-shallow-clone-plugin
- *publish-android-artifacts-docker-container
command: |
.buildkite/publish-react-native-bridge-android-artifacts.sh
Expand All @@ -68,9 +73,8 @@ steps:
artifact_paths:
- ios-xcframework/build/xcframeworks/*.tar.gz
plugins:
- automattic/a8c-ci-toolkit#2.16.0
- peakon/git-shallow-clone#v0.0.1:
depth: 1
- automattic/a8c-ci-toolkit#2.18.2
- *git-shallow-clone-plugin
agents:
queue: mac
env:
Expand Down