Skip to content

Commit

Permalink
test gcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
juliodialpad committed Nov 24, 2023
1 parent 9de4091 commit 0a53515
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,27 +97,14 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.DIALTONE_CI_TOKEN }}

gcp-auth:
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps:
- name: Checkout
uses: actions/checkout@v4

- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: ${{ secrets.DIALTONE_GCP_WIP }}
service_account: ${{ secrets.DIALTONE_GCP_SA }}

deploy-dialtone:
needs: [check-dialpad-member, get-branch-name, filter-actions]
if: ${{ needs.filter-actions.outputs.dialtone == 'true' }}
concurrency: ${{ github.workflow }}-${{ github.ref }}
runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
# env:
# VUEPRESS_BASE_URL: ${{ fromJSON('{"false": "/needs.get-branch-name.outputs.current_branch/", "true": "/"}')[github.ref == 'refs/heads/production'] }}
steps:
Expand Down Expand Up @@ -154,6 +141,13 @@ jobs:
- name: Build Dialtone library and documentation site
run: npx nx run --verbose dialtone-documentation:build

- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v1'
with:
workload_identity_provider: ${{ secrets.DIALTONE_GCP_WIP }}
service_account: ${{ secrets.DIALTONE_GCP_SA }}

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v1'
with:
Expand Down

0 comments on commit 0a53515

Please sign in to comment.