> For the complete CircleCI developer hub index, see [llms.txt](https://circleci.com/developer/llms.txt)

# thekevjames/gcloud

Tools for running gcloud commands.
[DEPRECATED] use talkiq/gcloud instead!


## Commands

### auth

Authenticate the Google Cloud SDK with GCP.


| Parameter | Type | Default | Description |
|---|---|---|---|
| `creds` | env_var_name | GCLOUD_SERVICE_KEY | Name of environment variable storing the base64-encoded service key for the GCP project.
 |
| `project` | string |  | The Google project ID to connect with via the gcloud CLI. |
| `zone` | string |  |  |

### configure-docker

Configure a local docker client with authentication to GCR. Requires you to have already run gcloud/auth.


### configure-gke

Configure kubectl pointing to a given cluster in a given zone/region. Requires you to have already run gcloud/auth.


| Parameter | Type | Default | Description |
|---|---|---|---|
| `cluster` | string |  |  |
| `zone` | string |  |  |

### install

Install the Google Cloud SDK on a supported executor. Currently supported package managers: apk, apt-get.


## Jobs

### docker-publish

A variation of the docker/publish job, pre-parametrized for GCR builds. This job will build, tag, and push a docker image. It will be tagged with all relevant metadata, eg. commit hash, branch (if this is a branch build), tag (if this is a tag build), and "latest".


| Parameter | Type | Default | Description |
|---|---|---|---|
| `build_args` | string |  | Extra flags to pass to docker build.
 |
| `creds` | env_var_name | GCLOUD_SERVICE_KEY | Name of environment variable storing the base64-encoded service key for the GCP project.
 |
| `dockerfile` | string | Dockerfile | Name of dockerfile to use.
 |
| `executor` | string | docker:18.06.3-ce-git | Name of the docker image to use to execute the job.
 |
| `image` | string | ${CIRCLE_PROJECT_REPONAME} | Name of the target image. Note that this will be prepended by the project name (eg. <<parameters.project>>), so the full path your image will be pushed to will look like: <<parameters.registry>>/<<parameters.project>>/<<parameters.image>>.
 |
| `path` | string | . | Path to the build context directory containing your Dockerfile.
 |
| `project` | string |  | Name of GCP project to which we will push.
 |
| `registry` | string | gcr.io | Container registry to-be-used.
 |
| `workspace` | string |  | If specified, attaches the specified workspace and copies it into the Docker context before building.
 |