From 7b573c145e86a9cc14418de4345a60938bba07a4 Mon Sep 17 00:00:00 2001 From: talithafrsc Date: Thu, 24 Oct 2024 17:42:27 +0700 Subject: [PATCH] fix secret call --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c15deb507..169e38c0a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,9 +8,9 @@ jobs: container: cedricguadalupe/terraform-gcloud steps: - name: Set GCP project - run: gcloud config set project $PROJECT_ID + run: gcloud config set project ${{ secrets.PROJECT_ID }} - name: Setup GCP authentication - run: echo "$BASE64_ENV_VAR" | base64 --decode > output_file.txt + run: echo "${{ secrets.BASE64_ENV_VAR }}" | base64 --decode > output_file.txt - run: gcloud auth activate-service-account --key-file output_file.txt - name: Initiate Terraform run: terraform init