Skip to content

Commit 088fcef

Browse files
authored
chore: update readme examples (#361)
Signed-off-by: Averi Kitsch <[email protected]>
1 parent 4fe52f3 commit 088fcef

File tree

1 file changed

+2
-44
lines changed

1 file changed

+2
-44
lines changed

README.md

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -206,51 +206,9 @@ jobs:
206206

207207
## Example Workflows
208208

209-
* [Deploy a prebuilt container](#deploy-a-prebuilt-container)
209+
* [Deploy from source](https://github.com/google-github-actions/example-workflows/blob/main/workflows/deploy-cloudrun/cloudrun-source.yml)
210210

211-
* [Build and deploy a container](#build-and-deploy-a-container)
212-
213-
### Setup
214-
215-
1. Create a new Google Cloud Project (or select an existing project).
216-
217-
1. [Enable the Cloud Run API](https://console.cloud.google.com/flows/enableapi?apiid=run.googleapis.com).
218-
219-
1. [Create a Google Cloud service account][sa] or select an existing one.
220-
221-
1. Add the the following [Cloud IAM roles][roles] to your service account:
222-
223-
- `Cloud Run Admin` - allows for the creation of new Cloud Run services
224-
225-
- `Service Account User` - required to deploy to Cloud Run as service account
226-
227-
- `Storage Admin` - allow push to Google Container Registry (this grants project level access, but recommend reducing this scope to [bucket level permissions](https://cloud.google.com/container-registry/docs/access-control#grant).)
228-
229-
1. [Download a JSON service account key][create-key] for the service account.
230-
231-
1. Add the following [secrets to your repository's secrets][gh-secret]:
232-
233-
- `GCP_PROJECT`: Google Cloud project ID
234-
235-
- `GCP_SA_KEY`: the downloaded service account key
236-
237-
### Deploy a prebuilt container
238-
239-
To run this [workflow](.github/workflows/example-workflow-quickstart.yaml), push to the branch named `example-deploy`:
240-
241-
```sh
242-
git push YOUR-FORK main:example-deploy
243-
```
244-
245-
### Build and deploy a container
246-
247-
To run this [workflow](.github/workflows/example-workflow.yaml), push to the branch named `example-build-deploy`:
248-
249-
```sh
250-
git push YOUR-FORK main:example-build-deploy
251-
```
252-
253-
**Reminder: If this is your first deployment of a service, it will reject all unauthenticated requests. Learn more at [allowing unauthenticated requests](#Allow-unauthenticated-requests)**
211+
* [Build and deploy a container](https://github.com/google-github-actions/example-workflows/blob/main/workflows/deploy-cloudrun/cloudrun-docker.yml)
254212

255213
## Migrating from `setup-gcloud`
256214

0 commit comments

Comments
 (0)