build/ci: add gcloud
Change-Id: Idaa081ebc0ab23980bc4913a7afbd3c317086899
Reviewed-on: https://review.monogon.dev/c/monogon/+/1478
Tested-by: Jenkins CI
Reviewed-by: Leopold Schabel <leo@monogon.tech>
diff --git a/build/ci/Dockerfile b/build/ci/Dockerfile
index 39bbb00..4f6f4ec 100644
--- a/build/ci/Dockerfile
+++ b/build/ci/Dockerfile
@@ -13,6 +13,14 @@
# (dotnet-runtime-5.0 and jq are required for the GitHub Actions runner)
# (golang is required for us to build bazelisk - see below)
+# Install gcloud tooling
+RUN curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-424.0.0-linux-x86_64.tar.gz && \
+ tar -xf google-cloud-cli-424.0.0-linux-x86_64.tar.gz && \
+ mv google-cloud-sdk /opt/ && \
+ /opt/google-cloud-sdk/install.sh
+
+ENV PATH="/opt/google-cloud-sdk/bin:${PATH}"
+
# Create CI build user. It is used by CI infrastructure to run build agents as.
# The newly created user will have a UID of 500, and a corresponding CI group
# of GID 500 will be created as well. This UID:GID pair's numeric values are