Skip to content

Commit

Permalink
skip auth/sdk install.
Browse files Browse the repository at this point in the history
  • Loading branch information
bhouston committed Aug 13, 2024
1 parent eca8408 commit 7d462fa
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/actions/deploy-cloud-run/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,27 @@ inputs:
description: 'Artifact Registry'
required: false
default: us-central1-docker.pkg.dev
skip_auth:
description: 'Skip authentication'
required: false
default: false
skip_sdk:
description: 'Skip SDK installation'
required: false
default: false

runs:
using: 'composite'
steps:
- id: 'auth'
name: gcloud auth
if: ${{ !inputs.skip_auth }}
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ inputs.credentials_json }}'

- name: gcloud sdk
if: ${{ !inputs.skip_sdk }}
uses: google-github-actions/setup-gcloud@v2
with:
skip_install: true
Expand Down
10 changes: 10 additions & 0 deletions .github/actions/dockerize/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,27 @@ inputs:
description: 'Artifact Registry'
required: false
default: us-central1-docker.pkg.dev
skip_auth:
description: 'Skip authentication'
required: false
default: false
skip_sdk:
description: 'Skip SDK installation'
required: false
default: false

runs:
using: 'composite'
steps:
- id: 'auth'
name: gcloud auth
if: ${{ !inputs.skip_auth }}
uses: google-github-actions/auth@v2
with:
credentials_json: '${{ inputs.credentials_json }}'

- name: gcloud sdk
if: ${{ !inputs.skip_sdk }}
uses: google-github-actions/setup-gcloud@v2
with:
skip_install: true
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ jobs:
credentials_json: ${{ secrets.GCP_SA_KEY }}
project_id: ${{ env.PROJECT_ID }}
service_name: ${{ env.SERVICE_NAME }}
skip_auth: true # already authenticated
skip_sdk: true # already installed

0 comments on commit 7d462fa

Please sign in to comment.