| env: | |
| GIT_HTTP_LOW_SPEED_LIMIT: "102400" | |
| GIT_HTTP_LOW_SPEED_TIME: "180" | |
| %{ for key, value in envs ~} | |
| ${key}: ${key == "LC_ALL" ? value : jsonencode(value)} | |
| %{ endfor ~} | |
| steps: | |
| - command: |- | |
| %{ for command in steps.commands ~} | |
| ${command} | |
| %{ endfor ~} | |
| label: "${try(steps.label, ":pipeline:")}" | |
| agents: | |
| - "queue=${try(steps.queue, "default")}"%{ if try(length(steps.artifact_paths), 0) > 0 } | |
| artifact_paths:%{ for artifact_path in steps.artifact_paths } | |
| - "${artifact_path}"%{ endfor }%{ endif } | |
| plugins: | |
| - docker#v3.8.0: | |
| always-pull: true | |
| environment: | |
| - "ANDROID_HOME" | |
| - "ANDROID_NDK_HOME" | |
| - "BUILDKITE_ARTIFACT_UPLOAD_DESTINATION" | |
| image: "gcr.io/bazel-public/ubuntu2404@sha256:299c95c01730dc64e51687e4c6b0066c70cb3daa5cfdf06f57fe0b7cbb123f15" | |
| network: "host" | |
| privileged: true | |
| propagate-environment: true | |
| propagate-uid-gid: true | |
| volumes: | |
| - "/etc/group:/etc/group:ro" | |
| - "/etc/passwd:/etc/passwd:ro" | |
| - "/etc/shadow:/etc/shadow:ro" | |
| - "/opt/android-ndk-r15c:/opt/android-ndk-r15c:ro" | |
| - "/opt/android-ndk-r25b:/opt/android-ndk-r25b:ro" | |
| - "/opt/android-sdk-linux:/opt/android-sdk-linux:ro" | |
| - "/var/lib/buildkite-agent:/var/lib/buildkite-agent" | |
| - "/var/lib/gitmirrors:/var/lib/gitmirrors:ro" |