Skip to content

Commit

Permalink
Merge pull request #4 from HexCoderTech/new-pr
Browse files Browse the repository at this point in the history
New secrets
  • Loading branch information
gnomezgrave authored Mar 10, 2024
2 parents 955d883 + 6fd7b59 commit e994411
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v3
- name: Get GCP Keys
- name: Terraform
id: credentials
run: |
# Get GCP credentials
echo "${KEY}" | base64 -d > ~/key.json
export GOOGLE_APPLICATION_CREDENTIALS=~/key.json
cd terraform
terraform init && terraform validate && terraform apply -auto-approve
env:
KEY: ${{secrets.SERVICE_ACCOUNT}}
GOOGLE_APPLICATION_CREDENTIALS: ~/key.json
- name: Terraform Init
id: init
run: |
cd terraform
terraform init
- name: Terraform Apply
id: apply
run: |
terraform validate && terraform apply -auto-approve
GOOGLE_APPLICATION_CREDENTIALS: ~/key.json

0 comments on commit e994411

Please # to comment.