Skip to content

Commit

Permalink
don't setup cloud if not cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlincecum committed Mar 1, 2024
1 parent c7af767 commit 95b6e9d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-deploy-elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,13 @@ jobs:
ssh-key: ${{ secrets.GH_PAT }}

- name: Authenticate to Google Cloud
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }}
uses: google-github-actions/[email protected] # Use the latest version available
with:
credentials_json: ${{ secrets.GH_GCP_TOKEN }}

- name: Setup Cloud SDK
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }}
uses: google-github-actions/[email protected]

- name: Access Secret from Secret Manager
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-deploy-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,13 @@ jobs:
# git config --global user.signingkey $GPG_KEY_ID

- name: Authenticate to Google Cloud
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }}
uses: google-github-actions/[email protected] # Use the latest version available
with:
credentials_json: ${{ secrets.GH_GCP_TOKEN }}

- name: Setup Cloud SDK
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }}
uses: google-github-actions/[email protected]

- name: Access Secret from Secret Manager
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-deploy-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,13 @@ jobs:
ssh-key: ${{ secrets.GH_PAT }}

- name: Authenticate to Google Cloud
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }}
uses: google-github-actions/[email protected] # Use the latest version available
with:
credentials_json: ${{ secrets.GH_GCP_TOKEN }}

- name: Setup Cloud SDK
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }}
uses: google-github-actions/[email protected]

- name: Access Secret from Secret Manager
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/build-deploy-ts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,13 @@ jobs:
ssh-key: ${{ secrets.GH_PAT }}

- name: Authenticate to Google Cloud
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }}
uses: google-github-actions/[email protected] # Use the latest version available
with:
credentials_json: ${{ secrets.GH_GCP_TOKEN }}

- name: Setup Cloud SDK
if: ${{ !inputs.skip_deploy && inputs.gcp_project_id != '' && inputs.token_secret_name != '' }}
uses: google-github-actions/[email protected]

- name: Access Secret from Secret Manager
Expand Down

0 comments on commit 95b6e9d

Please sign in to comment.