mirror of
https://github.com/google-github-actions/setup-gcloud.git
synced 2026-08-21 08:29:23 +00:00
Co-authored-by: Lewis Llobera <billobera@gmail.com>
This commit is contained in:
parent
4a93bb36a7
commit
95e2d15420
21 changed files with 32 additions and 32 deletions
2
.github/workflows/appengine-deploy-it.yml
vendored
2
.github/workflows/appengine-deploy-it.yml
vendored
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.APPENGINE_DEPLOY_SA_KEY_JSON }}
|
||||
export_default_credentials: true
|
||||
|
|
|
|||
6
.github/workflows/deploy-cf-it.yml
vendored
6
.github/workflows/deploy-cf-it.yml
vendored
|
|
@ -16,7 +16,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master # Set up ADC for credentials
|
||||
- uses: google-github-actions/setup-gcloud@master # Set up ADC for credentials
|
||||
with:
|
||||
service_account_email: ${{ secrets.DEPLOY_CF_SA_EMAIL }}
|
||||
service_account_key: ${{ secrets.DEPLOY_CF_SA_KEY_JSON }}
|
||||
|
|
@ -75,7 +75,7 @@ jobs:
|
|||
node-version: 12.x
|
||||
- run: npm install
|
||||
working-directory: ./deploy-cloud-functions
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master # Set up ADC to make authenticated request to service
|
||||
- uses: google-github-actions/setup-gcloud@master # Set up ADC to make authenticated request to service
|
||||
with:
|
||||
service_account_email: ${{ secrets.DEPLOY_CF_SA_EMAIL }}
|
||||
service_account_key: ${{ secrets.DEPLOY_CF_SA_KEY_JSON }}
|
||||
|
|
@ -116,7 +116,7 @@ jobs:
|
|||
node-version: 12.x
|
||||
- run: npm install
|
||||
working-directory: ./deploy-cloud-functions
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master # Set up ADC to make authenticated request to service
|
||||
- uses: google-github-actions/setup-gcloud@master # Set up ADC to make authenticated request to service
|
||||
with:
|
||||
service_account_email: ${{ secrets.DEPLOY_CF_SA_EMAIL }}
|
||||
service_account_key: ${{ secrets.DEPLOY_CF_SA_KEY_JSON }}
|
||||
|
|
|
|||
2
.github/workflows/deploy-cf-unit.yml
vendored
2
.github/workflows/deploy-cf-unit.yml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
run: npm run lint
|
||||
working-directory: ./deploy-cloud-functions
|
||||
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_email: ${{ secrets.DEPLOY_CF_SA_EMAIL }}
|
||||
service_account_key: ${{ secrets.DEPLOY_CF_SA_KEY_B64 }}
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ jobs:
|
|||
- id: service
|
||||
run: echo ::set-output name=service::run-gcloud-$GITHUB_SHA
|
||||
- uses: actions/checkout@v2
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master # Set up ADC to make authenticated request to service
|
||||
- uses: google-github-actions/setup-gcloud@master # Set up ADC to make authenticated request to service
|
||||
with:
|
||||
service_account_key: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
|
||||
export_default_credentials: true
|
||||
|
|
@ -52,7 +52,7 @@ jobs:
|
|||
node-version: 12.x
|
||||
- run: npm install
|
||||
working-directory: ./deploy-cloudrun
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master # Set up ADC to make authenticated request to service
|
||||
- uses: google-github-actions/setup-gcloud@master # Set up ADC to make authenticated request to service
|
||||
with:
|
||||
service_account_key: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
|
||||
export_default_credentials: true
|
||||
|
|
@ -80,7 +80,7 @@ jobs:
|
|||
node-version: 12.x
|
||||
- run: npm install
|
||||
working-directory: ./deploy-cloudrun
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master # Set up ADC to make authenticated request to service
|
||||
- uses: google-github-actions/setup-gcloud@master # Set up ADC to make authenticated request to service
|
||||
with:
|
||||
service_account_key: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
|
||||
export_default_credentials: true
|
||||
|
|
@ -95,7 +95,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: [json, gcloud, b64_json]
|
||||
steps:
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
|
||||
project_id: ${{ secrets.DEPLOY_CLOUDRUN_PROJECT_ID }}
|
||||
|
|
|
|||
8
.github/workflows/deploy-cloudrun-it.yml
vendored
8
.github/workflows/deploy-cloudrun-it.yml
vendored
|
|
@ -31,7 +31,7 @@ jobs:
|
|||
service: ${{ steps.service.outputs.service }}
|
||||
env_vars: TEST_ENV=TEST_VAR
|
||||
- name: Setup Authentication with gcloud
|
||||
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
|
||||
export_default_credentials: true
|
||||
|
|
@ -81,7 +81,7 @@ jobs:
|
|||
service: ${{ steps.service.outputs.service }}
|
||||
metadata: ./deploy-cloudrun/tests/unit/service.basic.yaml
|
||||
- name: Setup Authentication with gcloud
|
||||
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
|
||||
export_default_credentials: true
|
||||
|
|
@ -114,7 +114,7 @@ jobs:
|
|||
service: ${{ steps.service.outputs.service }}
|
||||
metadata: ./deploy-cloudrun/tests/unit/service.full.yaml
|
||||
- name: Setup Authentication with gcloud
|
||||
uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
|
||||
export_default_credentials: true
|
||||
|
|
@ -148,7 +148,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: [envvars, metadata, yaml]
|
||||
steps:
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
|
||||
project_id: ${{ secrets.DEPLOY_CLOUDRUN_PROJECT_ID }}
|
||||
|
|
|
|||
2
.github/workflows/deploy-cloudrun.yml
vendored
2
.github/workflows/deploy-cloudrun.yml
vendored
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
run: npm run lint
|
||||
working-directory: ./deploy-cloudrun
|
||||
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.DEPLOY_CLOUDRUN_SA_KEY_B64 }}
|
||||
export_default_credentials: true
|
||||
|
|
|
|||
2
.github/workflows/get-gke-credentials-it.yml
vendored
2
.github/workflows/get-gke-credentials-it.yml
vendored
|
|
@ -12,7 +12,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master # Set up ADC for credentials
|
||||
- uses: google-github-actions/setup-gcloud@master # Set up ADC for credentials
|
||||
with:
|
||||
service_account_key: ${{ secrets.GET_GKE_CRED_SA_KEY_JSON }}
|
||||
export_default_credentials: true
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ jobs:
|
|||
run: npm run lint
|
||||
working-directory: ./get-gke-credentials
|
||||
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.GET_GKE_CRED_SA_KEY_JSON }}
|
||||
export_default_credentials: true
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.GET_SECRETMANAGER_SECRETS_SA_KEY_B64 }}
|
||||
export_default_credentials: true
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ jobs:
|
|||
run: |-
|
||||
npm install
|
||||
npm run build
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_email: ${{ secrets.UPLOAD_CLOUD_STORAGE_GCP_SA_EMAIL }}
|
||||
service_account_key: ${{ secrets.UPLOAD_CLOUD_STORAGE_GCP_SA_KEY_B64 }}
|
||||
|
|
@ -93,7 +93,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_email: ${{ secrets.UPLOAD_CLOUD_STORAGE_GCP_SA_EMAIL }}
|
||||
service_account_key: ${{ secrets.UPLOAD_CLOUD_STORAGE_GCP_SA_KEY_B64 }}
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ You can provide credentials using the [setup-gcloud][setup-gcloud] action,
|
|||
however you must provide your Project ID to the `appengine-deploy` action:
|
||||
|
||||
```yaml
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
version: '290.0.1'
|
||||
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ steps:
|
|||
|
||||
- `runtime`: (Required) Runtime to use for the function. Possible options documented [here][runtimes].
|
||||
|
||||
- `entry_point`: (Optional) Name of a function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified.
|
||||
- `entry_point`: (Optional) Name of a function (as defined in source code) that will be executed. Defaults to the resource name suffix, if not specified.
|
||||
|
||||
- `region`: (Optional) Region in which the function should be deployed. Defaults to `us-central1`.
|
||||
|
||||
|
|
@ -125,7 +125,7 @@ one of the methods found in [Configuring Ownership and access to a service accou
|
|||
You can provide credentials using the [setup-gcloud][setup-gcloud] action:
|
||||
|
||||
```yaml
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
||||
export_default_credentials: true
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ steps:
|
|||
KEY1=VALUE1,KEY2=VALUE2. **All existing environment variables will be retained**.
|
||||
|
||||
- `metadata`: YAML serivce description for the Cloud Run service. See
|
||||
[Metadata customizations](#metadata-customizations) for more information.
|
||||
[Metadata customizations](#metadata-customizations) for more information.
|
||||
**Existing configuration will be retained besides container entrypoint and arguments**.
|
||||
|
||||
- `project_id`: (Optional) ID of the Google Cloud project. If provided, this
|
||||
|
|
@ -139,7 +139,7 @@ one of the methods found in [Configuring Ownership and access to a service accou
|
|||
You can provide credentials using the [setup-gcloud][setup-gcloud] action:
|
||||
|
||||
```yaml
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
version: '290.0.1'
|
||||
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
# Setup gcloud CLI
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
version: '286.0.0'
|
||||
service_account_email: ${{ secrets.RUN_SA_EMAIL }}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
# Setup gcloud CLI
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
version: '290.0.1'
|
||||
service_account_key: ${{ secrets.RUN_SA_KEY }}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
# Setup and configure gcloud CLI
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
version: '290.0.1'
|
||||
project_id: ${{ secrets.PROJECT_ID }}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
# Setup gcloud CLI
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
version: '290.0.1'
|
||||
service_account_key: ${{ secrets.GCE_SA_KEY }}
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ jobs:
|
|||
uses: actions/checkout@v2
|
||||
|
||||
# Setup gcloud CLI
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
version: '290.0.1'
|
||||
service_account_key: ${{ secrets.GKE_SA_KEY }}
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ permissions to access the secrets being requested.
|
|||
You can provide credentials using the [setup-gcloud][setup-gcloud] action:
|
||||
|
||||
```yaml
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
export_default_credentials: true
|
||||
- uses: GoogleCloudPlatform/github-actions/get-secretmanager-secrets@master
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ It does the following:
|
|||
```yaml
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
version: '290.0.1'
|
||||
project_id: ${{ secrets.GCP_PROJECT_ID }}
|
||||
|
|
|
|||
|
|
@ -157,7 +157,7 @@ permissions to access the secrets being requested.
|
|||
You can provide credentials using the [setup-gcloud][setup-gcloud] action:
|
||||
|
||||
```yaml
|
||||
- uses: GoogleCloudPlatform/github-actions/setup-gcloud@master
|
||||
- uses: google-github-actions/setup-gcloud@master
|
||||
with:
|
||||
service_account_key: ${{ secrets.GCP_SA_KEY }}
|
||||
export_default_credentials: true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue