sgaripelli/Deploy to Cloud Run

Use this action to deploy a container in the Google Container Registry to Cloud Run.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
Runtime
Deprecated runtime
namedescriptionrequireddefault
imageName of the container image to deploy (e.g. gcr.io/cloudrun/hello:latest). Required if not using a service YAML.no
serviceID of the service or fully qualified identifier for the service. Required if not using a service YAML.no
regionRegion in which the resource can be found.nous-central1
env_varsList of key-value pairs to set as environment variables in the format: KEY1=VALUE1,KEY2=VALUE2. Existing environment variables will be retained.no
secretsList of key-value pairs to set as either environment variables or mounted volumes in the format: KEY1=secret-key-1:latest,/secrets/api/key=secret-key-2:latest. Existing secrets will be retained.no
metadataYAML service description for the Cloud Run service.no
project_idThe GCP project ID. Overrides project ID set by credentials.no
credentialsService account key to use for authentication. This should be the JSON formatted private key which can be exported from the Cloud Console. The value can be raw or base64-encoded. Required if not using a the setup-gcloud action with exported credentials.no
sourceThe location of the source to build. The location can be a directory on a local disk or a gzipped archive file (.tar.gz) in Google Cloud Storage. The role `Cloud Build Service Account` is required.no
suffixSpecify the suffix of the revision name. Revision names always start with the service name automatically. For example, specifying 'v1' for a service named 'helloworld', would lead to a revision named 'helloworld-v1'.no
tagTraffic tag to assign to the newly created revision.no
no_trafficTrue to avoid sending traffic to the revision being deployed. Setting this flag assigns any traffic assigned to the LATEST revision to the specific revision bound to LATEST before the deployment. The effect is that the revision being deployed will not receive traffic. After a deployment with this flag the LATEST revision will not receive traffic on future deployments. no
revision_trafficComma separated list of traffic assignments in the form REVISION-NAME=PERCENTAGE. REVISION-NAME must be the name for a revision for the service as returned by 'gcloud beta run list revisions'. PERCENTAGE must be an integer percentage between 0 and 100 inclusive. Ex service-nw9hs=10,service-nw9hs=20 Up to 100 percent of traffic may be assigned. If 100 percent of traffic is assigned, the Service traffic is updated as specified. If under 100 percent of traffic is assigned, the Service traffic is updated as specified for revisions with assignments and traffic is scaled up or down down proportionally as needed for revision that are currently serving traffic but that do not have new assignments.no
tag_trafficComma separated list of traffic assignments in the form TAG=PERCENTAGE. TAG must match a traffic tag on a revision of the service. PERCENTAGE must be an integer percentage between 0 and 100 inclusive. Up to 100 percent of traffic may be assigned. If 100 percent of traffic is assigned, the service traffic is updated as specified. If under 100 percent of traffic is assigned, the service traffic is updated as specified to the given tags, and other traffic is scaled up or down proportionally.no
flagsSpace separated list of other Cloud Run flags, examples can be found: https://cloud.google.com/sdk/gcloud/reference/run/deploy#FLAGS. Ex --service-account=my-account@project.iam.gserviceaccount.com --concurrency=10no
gcloud_versionVersion 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".no
namedescription
urlThe URL of your Cloud Run service