Skip to content

Commit 648300b

Browse files
v1vswiatekm
authored andcommitted
Use BK cache plugin
# Conflicts: # .buildkite/pipeline.yml # Conflicts: # .buildkite/pipeline.yml
1 parent 3e7d103 commit 648300b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.buildkite/pipeline.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,27 @@ env:
1111
IMAGE_WIN_2022: "platform-ingest-elastic-agent-windows-2022-1761958868"
1212
IMAGE_WIN_10: "platform-ingest-elastic-agent-windows-10-1761958868"
1313
IMAGE_WIN_11: "platform-ingest-elastic-agent-windows-11-1761958868"
14+
BUILDKITE_PLUGIN_S3_CACHE_BUCKET: "elastic-agent-ci-go-cache"
15+
BUILDKITE_PLUGIN_S3_CACHE_PREFIX: "elastic-agent-test"
16+
17+
common:
18+
- aws_oidc: &aws_oidc
19+
# See https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/elastic-agent/01-aws-buildkite-oidc.tf
20+
elastic/oblt-aws-auth#v0.2.0:
21+
- base_cache_settings: &base_cache_settings
22+
manifest: go.sum
23+
backend: s3
24+
restore: all
25+
save: file
26+
compression: zstd
27+
- cache_unix: &cache_unix
28+
cache#v1.8.0:
29+
<<: *base_cache_settings
30+
path: /opt/buildkite-agent/.cache/go-build
31+
- cache_windows: &cache_windows
32+
cache#v1.8.0:
33+
<<: *base_cache_settings
34+
path: C:\Users\buildkite\AppData\Local\go-build
1435

1536
steps:
1637
- label: "check-ci"
@@ -38,6 +59,9 @@ steps:
3859
provider: "gcp"
3960
image: "${IMAGE_UBUNTU_2204_X86_64}"
4061
machineType: "n2-standard-8"
62+
plugins:
63+
- *aws_oidc
64+
- *cache_unix
4165
retry:
4266
automatic:
4367
limit: 1

0 commit comments

Comments
 (0)