Skip to content

Commit

Permalink
Merge branch 'release' of github.com:HexCoderTech/github-actions-demo…
Browse files Browse the repository at this point in the history
… into release
  • Loading branch information
gnomezgrave committed Mar 10, 2024
2 parents 6b32111 + 51e07f1 commit 6f6f3ce
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 6f6f3ce

Please # to comment.