You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-44Lines changed: 2 additions & 44 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,51 +206,9 @@ jobs:
206
206
207
207
## Example Workflows
208
208
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)
210
210
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)
0 commit comments