Skip to content

Update google-cloud-sdk to google-cloud-cli and fix apt-key deprecation - #5446

Merged
ViniciustCosta merged 2 commits into
masterfrom
fix-cloud-build-google-cloud-cli
Sep 2, 2026
Merged

Update google-cloud-sdk to google-cloud-cli and fix apt-key deprecation#5446
ViniciustCosta merged 2 commits into
masterfrom
fix-cloud-build-google-cloud-cli

Conversation

@ViniciustCosta

@ViniciustCosta ViniciustCosta commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Fix base image Cloud Build failures when installing gcloud CLI/SDK dependencies on newer Ubuntu environments.

  • Replaced all references to google-cloud-sdk (and its addons like app-engine-python) with google-cloud-cli. Google formally stopped publishing updates under the legacy SDK package name, causing a "no installation candidate" failure on newer deployments.

  • Replaced deprecated apt-key add commands with direct keyring configurations. Ubuntu 24.04 strictly enforces this deprecation, so GPG keys are now piped securely to /usr/share/keyrings/cloud.google.asc and referenced via the [signed-by=...] directive.

References:
* https://cloud.google.com/sdk/docs/install#deb
* https://wiki.debian.org/DebianRepository/UseThirdParty

Signed-off-by: Vinicius da Costa <vtcosta@google.com>
@ViniciustCosta
ViniciustCosta force-pushed the fix-cloud-build-google-cloud-cli branch from 1ed596f to 20e027a Compare September 1, 2026 19:12
@ViniciustCosta
ViniciustCosta marked this pull request as ready for review September 2, 2026 13:09
@ViniciustCosta
ViniciustCosta requested a review from a team as a code owner September 2, 2026 13:09

@PauloVLB PauloVLB left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for fixing this! :D

@ViniciustCosta
ViniciustCosta merged commit 8e22c66 into master Sep 2, 2026
15 checks passed
@ViniciustCosta
ViniciustCosta deleted the fix-cloud-build-google-cloud-cli branch September 2, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants