Skip to content

Commit

Permalink
Merge pull request #262 from bluelabsio/RM-117-apt-key-is-deprecated.…
Browse files Browse the repository at this point in the history
…-Manage-keyring-files-in-trusted.gpg.d-instead-gpg-no-valid-OpenPGP-data-found

RM-117 update to use keyring
  • Loading branch information
ryantimjohn authored Dec 11, 2023
2 parents 0bc88b7 + a43c641 commit d4373e8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,20 @@ jobs:
- run:
name: Install gcloud
command: |
# Add the Cloud SDK distribution URI as a package source
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# Import the Google Cloud Platform public key
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add -
# Use keyring to store gpg key
sudo mkdir -m 0755 -p /etc/apt/keyrings/
wget -O- https://packages.cloud.google.com/apt/doc/apt-key.gpg |
gpg --dearmor |
sudo tee /etc/apt/keyrings/google-cloud.gpg > /dev/null
sudo chmod 644 /etc/apt/keyrings/google-cloud.gpg
# Add the Cloud SDK distribution URI as a package source
echo "deb [signed-by=/etc/apt/keyrings/google-cloud.gpg] http://packages.cloud.google.com/apt cloud-sdk main" |
sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
sudo chmod 644 /etc/apt/sources.list.d/google-cloud-sdk.list
# Update the package list and install the Cloud SDK
sudo apt-get update -y && sudo apt-get install -y google-cloud-sdk
Expand Down

0 comments on commit d4373e8

Please sign in to comment.