Giter Club home page Giter Club logo

setup-gcloud's Introduction

setup-gcloud GitHub Action

Configures the Google Cloud SDK in the GitHub Actions environment. The Google Cloud SDK includes both the gcloud and gsutil binaries.

Or integrate natively with other Google Cloud GitHub Actions:

๐Ÿ“ข NOTICE

Previously this repository contained the code for ALL of the GCP GithHub Actions. Now each action has it's own repo and this repo is only for setup-gcloud

Use google-github-actions/setup-gcloud

steps:
 - id: gcloud
-  uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
+  uses: google-github-actions/setup-gcloud@master

Or google-github-actions/{action}

steps:
 - id: deploy
-  uses: GoogleCloudPlatform/github-actions/deploy-cloudrun@master
+  uses: google-github-actions/deploy-cloudrun@main

Table of Contents

Usage

- name: Set up Cloud SDK
  uses: google-github-actions/setup-gcloud@master
  with:
    project_id: ${{ secrets.GCP_PROJECT_ID }}
    service_account_key: ${{ secrets.GCP_SA_KEY }}
    export_default_credentials: true

- name: Use gcloud CLI
  run: gcloud info

Inputs

Name Requirement Default Description
version optional latest The version of the gcloud to be installed. Example: 290.0.1
project_id optional ID of the Google Cloud Platform project. If provided, this will configure gcloud to use this project ID by default for commands. Individual commands can still override the project using the --project flag which takes precedence.
service_account_key optional The service account key which will be used for authentication credentials. This key should be created and stored as a secret. It can be encoded as a Base64 string or as JSON.
service_account_email optional Service account email address to use for authentication. This is required for legacy .p12 keys but can be omitted for JSON keys. This is usually of the format <name>@<project-id>.iam.gserviceaccount.com.
export_default_credentials optional false Exports the path to Default Application Credentials as the environment variable GOOGLE_APPLICATION_CREDENTIALS to be available in later steps. Google Cloud services automatically use this environment variable to find credentials.
credentials_file_path optional GITHUB_WORKSPACE Only valid when export_default_credentials is true. Sets the path at which the credentials should be written.

Example Workflows

Contributing

See CONTRIBUTING.

License

See LICENSE.

setup-gcloud's People

Contributors

anthonymonori avatar averikitsch avatar benjaminpo avatar bharathkkb avatar btorresgil avatar case avatar craigdbarber avatar dakom avatar dependabot[bot] avatar enochcheung avatar erjohnso avatar explooosion avatar frodothetrue avatar google-github-actions-bot avatar hfaulds avatar imjohnbo avatar jaapp- avatar jacek-jablonski avatar leozz37 avatar mattdsteele avatar matthewmichihara avatar maxday avatar parkr avatar podollb avatar powersjcb avatar rakyll avatar sethvargo avatar sullis avatar tsutsu avatar vorburger avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.