From d5360d622cc18bcddfd84b306ab2af07d3d8135a Mon Sep 17 00:00:00 2001 From: Praneeth Peiris Date: Sun, 10 Mar 2024 17:19:44 +0100 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 616714e..d875a95 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,6 +12,15 @@ jobs: steps: - uses: actions/checkout@v4 - uses: hashicorp/setup-terraform@v3 + - name: Get GCP Keys + id: credentials + run: | + # Get GCP credentials + echo "${KEY}" | base64 -d > ~/key.json + export GOOGLE_APPLICATION_CREDENTIALS=~/key.json + env: + KEY: ${{secrets.SERVICE_ACCOUNT}} + GOOGLE_APPLICATION_CREDENTIALS: ~/key.json - name: Terraform Init id: init run: |