Provide official container that deploys to GCP CLI
Problem to solve
Similar to #31167 (closed)
we should add support for GCP deployments in a simple way.
Intended users
Teams implementing CD for the cloud
Further details
What it looks like in CircleCI orbs: Install the gcloud CLI, if not available
orbs:
gcp-cli: circleci/gcp-cli@1.0.0
version: 2.1
workflows:
install_and_configure_cli:
jobs:
- gcp-cli/install_and_initialize_cli:
context: myContext
executor: gcp-cli/default
Proposal
The docker image should:
- Initilize the gcloud CLI
- Install the gcloud CLI, if not available
deploy:
stage: deploy
image: gitlab/gitlab-gcpclient@SHA256
script:
- gcp ..."
FROM ubuntu:latest
ENV DEBIAN_FRONTEND=noninteractive
# Pull latest Cloud SDK release from Google Container registry
docker pull gcr.io/google.com/cloudsdktool/cloud-sdk:latest
# Verify the installation
docker run gcr.io/google.com/cloudsdktool/cloud-sdk:latest gcloud version
# Authenticate with the gcloud command-line tool by running:
docker run -ti --name gcloud-config gcr.io/google.com/cloudsdktool/cloud-sdk gcloud auth login
Secrets needed:
- GCLOUD_SERVICE_KEY
- GOOGLE_COMPUTE_ZONE
- GOOGLE_PROJECT_ID
Permissions and Security
Documentation
Availability & Testing
What does success look like, and how can we measure that?
What is the type of buyer?
Links / references
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.
Edited by 🤖 GitLab Bot 🤖