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: example-workflows/cloud-run/README.md
+19-60Lines changed: 19 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,21 +1,25 @@
1
-
# Cloud Run - GitHub Actions
1
+
# Cloud Run Workflow
2
2
3
-
An example workflow that uses [GitHub Actions][actions] to deploy a
4
-
[Hello World Node.js app](index.js) to [Cloud Run][cloud-run].
3
+
An example workflow that uses the `setup-gcloud` action to deploy to [Cloud Run][cloud-run].
4
+
5
+
_**Checkout the [`deploy-cloudrun` action](https://github.com/google-github-actions/deploy-cloudrun) and [example workflows](https://github.com/google-github-actions/deploy-cloudrun/README.md#example-workflows)
6
+
for a specialized implementation.**_
5
7
6
8
This code is intended to be an _example_. You will likely need to change or
7
9
update values to match your setup.
8
10
9
11
## Workflow description
10
12
11
-
For pushes to the `master` branch, this workflow will:
13
+
For pushes to the `example` branch, this workflow will:
12
14
13
15
1. Download and configure the Google [Cloud SDK][sdk] with the provided
14
16
credentials.
15
17
18
+
1. Authenticates Docker to push to Google Container Registry
19
+
16
20
1. Build, tag, and push a container image to Google Container Registry.
17
21
18
-
- The image is built using Cloud Build and pushed to Google Container Registry.
22
+
- The image is built using Docker and pushed to Google Container Registry.
19
23
20
24
- The image is available through the following tags: `latest` and first 8 of
21
25
the commit SHA.
@@ -24,72 +28,27 @@ For pushes to the `master` branch, this workflow will:
24
28
25
29
## Setup
26
30
27
-
1. Create a new Google Cloud Project (or select an existing project) and
28
-
[enable the Cloud Run and Cloud Build APIs](https://console.cloud.google.com/flows/enableapi?apiid=cloudbuild.googleapis.com,run.googleapis.com).
29
-
30
-
1. Create or reuse a GitHub repository for the example workflow:
31
-
32
-
1.[Create a repository](https://help.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-new-repository).
33
-
34
-
1. Move into the repository directory:
31
+
1. Create a new Google Cloud Project (or select an existing project).
35
32
36
-
```
37
-
$ cd <repo>
38
-
```
33
+
1.[Enable the Cloud Run API](https://console.cloud.google.com/flows/enableapi?apiid=run.googleapis.com).
0 commit comments