-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (28 loc) · 750 Bytes
/
Copy pathmain.yml
File metadata and controls
36 lines (28 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy GRC Platform (Dev)
on:
push:
branches:
- dev
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.7.5
- name: Authenticate with Google Cloud
uses: google-github-actions/auth@v2
with:
token_format: "access_token"
workload_identity_provider: ${{ secrets.GCP_WIF_PROVIDER }}
service_account: terraform-deployer@cycorgi-grc-platform.iam.gserviceaccount.com
- name: Terraform Init
run: terraform init
- name: Terraform Plan
run: terraform plan