From 33dd4b5ab92b21b5c130f6f9d2382c8bcdb962a4 Mon Sep 17 00:00:00 2001 From: Tiffany Lin Date: Thu, 18 Apr 2024 17:54:24 +0000 Subject: [PATCH] Add comment on buildkite-agent installation, yq explode usage --- .buildkite/pipeline.yml | 1 + docker/buildkite/Dockerfile | 9 ++------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 9a32f154d..9f86280bd 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,3 +1,4 @@ +# `yq 'explode(.)' .buildkite/pipeline.yml` to view expanded anchors/aliases container: kubernetes: &kubernetes gitEnvFrom: diff --git a/docker/buildkite/Dockerfile b/docker/buildkite/Dockerfile index 78c99b099..86570f243 100644 --- a/docker/buildkite/Dockerfile +++ b/docker/buildkite/Dockerfile @@ -9,17 +9,12 @@ ADD go.mod go.sum /go/src/go.uber.org/cadence/ RUN git config --global --add safe.directory /go/src/go.uber.org/cadence RUN GO111MODULE=on go mod download -# Install dependencies needed to install buildkite-agent +# Install Buildkite agent +# https://buildkite.com/docs/agent/v3/ubuntu RUN apt-get install -y apt-transport-https dirmngr curl - -# Add Buildkite's GPG key RUN curl -fsSL https://keys.openpgp.org/vks/v1/by-fingerprint/32A37959C2FA5C3C99EFBC32A79206696452D198 | \ gpg --dearmor -o /usr/share/keyrings/buildkite-agent-archive-keyring.gpg - -# Add the repository to Apt sources RUN echo \ "deb [signed-by=/usr/share/keyrings/buildkite-agent-archive-keyring.gpg] https://apt.buildkite.com/buildkite-agent stable main" | \ tee /etc/apt/sources.list.d/buildkite-agent.list - -# Install Buildkite agent RUN apt-get update && apt-get install -yy --no-install-recommends buildkite-agent