Skip to content

Commit

Permalink
Add support for custom gcloud components and versions (#291)
Browse files Browse the repository at this point in the history
Fixes GH-270
  • Loading branch information
sethvargo authored Dec 16, 2022
1 parent f00f1fe commit bdce19e
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 1,976 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ jobs:

See the [complete list of flags](https://cloud.google.com/sdk/gcloud/reference/run/deploy#FLAGS) for more information.

---

- `gcloud_version`: (Optional) Version of the gcloud CLI to use. The default value is `latest`.

- `gcloud_component`: (Optional) Component of the gcloud CLI to use. Valid
values are `alpha` and `beta`. The default value is to use the stable track.

### app.yaml customizations

Other application configurations can be customized through the app.yaml, ie the
Expand Down
15 changes: 15 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ inputs:
--service-account=my-account@project.iam.gserviceaccount.com --no-cache
required: false

gcloud_version:
description: |-
Version of the Cloud SDK to install. If unspecified or set to "latest",
the latest available gcloud SDK version for the target platform will be
installed. Example: "290.0.1".
required: false

gcloud_component:
description: |-
Version of the Cloud SDK components to install and use. If unspecified,
the latest or released version will be used. This is the equivalent of
running 'gcloud alpha COMMAND' or 'gcloud beta COMMAND'. Valid values are
`alpha` or `beta`. The default value is to use the stable track.
required: false

outputs:
name:
description: |-
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

Loading

0 comments on commit bdce19e

Please sign in to comment.