Pin gsutil version in www-gitlab-com image

This version pin the Cloud SDK to use gsutil 5.17, which introduced a
bug in requiring that the `storage.buckets.get` permission be
available: https://github.com/GoogleCloudPlatform/gsutil/issues/1663

Pinning this version will avoid unexpected problems such as
https://gitlab.com/gitlab-com/gl-infra/production/-/issues/8262 in the
future.
This commit is contained in:
Stan Hu 2023-01-19 09:22:15 -08:00
parent 3d191921a1
commit e57a2714eb
No known key found for this signature in database
GPG key ID: 8D3931AD39CC7A20

View file

@ -1,5 +1,10 @@
FROM gcr.io/google.com/cloudsdktool/cloud-sdk as gcloud-sdk
ARG GCLOUD_VERSION=413.0.0
# Google-cloud-sdk
#
# gsutil 5.18 unnecessarily requires the storage.buckets.get
# permission: https://github.com/GoogleCloudPlatform/gsutil/issues/1663
FROM gcr.io/google.com/cloudsdktool/cloud-sdk:$GCLOUD_VERSION as gcloud-sdk
FROM ruby:3.0.5-slim-bullseye
# Install Google Cloud SDK for deploys via rsync